/*
Theme Name: JB360 Theme
Theme URI: https://jb360.fr/
Author: JB360
Author URI: https://jb360.fr/
Description: Thème WordPress natif Full Site Editing de l'écosystème JB360.
Version: 0.1.0
Requires at least: 7.1
Requires PHP: 8.1
Text Domain: jb360
*/

/*
 * JB360 — Dynamic project cards
 * Keeps native Query Loop while limiting orphan cards on wide screens.
 */
/* Native Query Loop grid for JB360 project cards. */
.wp-block-post-template.jb360-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--wp--preset--spacing--30);
    margin: 0;
    padding: 0;
}

.jb360-project-grid > li {
    min-width: 0;
}

.jb360-project-card {
    height: 100%;
    overflow: hidden;
}

.jb360-project-card .wp-block-post-featured-image {
    margin: 0;
}

.jb360-project-card .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jb360-project-meta {
    gap: 0.45rem 0.75rem;
}

.jb360-project-meta > * + *::before {
    content: "·";
    margin-right: 0.75rem;
    color: var(--wp--preset--color--muted);
}

@media (max-width: 900px) {
    .wp-block-post-template.jb360-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wp-block-post-template.jb360-project-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================================
   JB360 UI — Process
   ========================================================= */

.jb360-process .jb360-process-grid {
    align-items: stretch;
}

.jb360-process .jb360-process-step {
    position: relative;
    min-width: 0;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    border-radius: var(--wp--custom--radius--large);
    background: var(--wp--preset--color--background);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.jb360-process .jb360-process-step:hover {
    transform: translateY(-4px);
    border-color: color-mix(
        in srgb,
        var(--wp--preset--color--accent) 35%,
        transparent
    );
    box-shadow: var(--wp--custom--shadow--medium);
}

.jb360-process .jb360-process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 0 1rem;
    border-radius: 999px;
    background: color-mix(
        in srgb,
        var(--wp--preset--color--accent) 14%,
        transparent
    );
    line-height: 1;
}

.jb360-process .jb360-process-step h3 {
    margin-top: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

@media (max-width: 900px) {
    .jb360-process .jb360-process-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jb360-process .jb360-process-step {
        width: auto;
        flex-basis: auto;
    }
}

@media (max-width: 600px) {
    .jb360-process .jb360-process-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jb360-process .jb360-process-step {
        transition: none;
    }

    .jb360-process .jb360-process-step:hover {
        transform: none;
    }
}

/* JB360 UI — Process number refinement */
.jb360-process .jb360-process-number {
    display: flex;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0 1.1rem;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--primary) !important;
    font-size: 0.875rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}


/* =========================================================
   JB360 UI — Primitives
   ========================================================= */

:where(a, button, summary, input, select, textarea):focus-visible {
    outline: 3px solid color-mix(
        in srgb,
        var(--wp--preset--color--accent) 70%,
        transparent
    );
    outline-offset: 3px;
}


/* Buttons */

.wp-block-button__link,
.wp-element-button {
    position: relative;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--wp--custom--shadow--medium);
}

.wp-block-button__link:active,
.wp-element-button:active {
    transform: translateY(0);
    box-shadow: var(--wp--custom--shadow--small);
}


/* Images */

.wp-block-image img,
.wp-block-post-featured-image img {
    display: block;
}


/* =========================================================
   JB360 UI — Project cards
   ========================================================= */

.jb360-project-card {
    position: relative;
    border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
    box-shadow: var(--wp--custom--shadow--small);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.jb360-project-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(
        in srgb,
        var(--wp--preset--color--accent) 28%,
        transparent
    );
    box-shadow: var(--wp--custom--shadow--medium);
}

.jb360-project-card .wp-block-post-featured-image {
    overflow: hidden;
    background: var(--wp--preset--color--background);
}

.jb360-project-card .wp-block-post-featured-image a {
    display: block;
    overflow: hidden;
}

.jb360-project-card .wp-block-post-featured-image img {
    display: block;
    aspect-ratio: 16 / 10 !important;
    transition: transform 450ms ease;
}

.jb360-project-card:hover .wp-block-post-featured-image img {
    transform: scale(1.035);
}

.jb360-project-card .wp-block-post-title {
    margin-top: 0.45rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.jb360-project-card .wp-block-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 220ms ease;
}

.jb360-project-card:hover .wp-block-post-title a,
.jb360-project-card .wp-block-post-title a:hover,
.jb360-project-card .wp-block-post-title a:focus-visible {
    color: var(--wp--preset--color--accent);
    text-decoration: none;
}

.jb360-project-meta {
    padding-top: 0.15rem;
    color: var(--wp--preset--color--muted);
}

.jb360-project-meta > * {
    margin-top: 0;
    margin-bottom: 0;
}

.jb360-project-meta > *:last-child {
    color: var(--wp--preset--color--foreground);
}


/* =========================================================
   Motion accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .wp-block-button__link,
    .wp-element-button,
    .jb360-project-card,
    .jb360-project-card .wp-block-post-featured-image img,
    .jb360-project-card .wp-block-post-title a {
        transition: none;
    }

    .wp-block-button__link:hover,
    .wp-element-button:hover,
    .jb360-project-card:hover,
    .jb360-project-card:hover .wp-block-post-featured-image img {
        transform: none;
    }
}


/* =========================================================
   JB360 UI — Expertise cards
   ========================================================= */

.jb360-expertise .jb360-expertise-grid {
    align-items: stretch;
}

.jb360-expertise .jb360-expertise-card {
    position: relative;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
    box-shadow: var(--wp--custom--shadow--small);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.jb360-expertise .jb360-expertise-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3.25rem;
    height: 3px;
    border-radius: 0 0 999px 0;
    background: var(--wp--preset--color--accent);
    transition: width 220ms ease;
}

.jb360-expertise .jb360-expertise-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(
        in srgb,
        var(--wp--preset--color--accent) 30%,
        transparent
    );
    box-shadow: var(--wp--custom--shadow--medium);
}

.jb360-expertise .jb360-expertise-card:hover::before {
    width: 5rem;
}

.jb360-expertise .jb360-expertise-card h3 {
    margin-top: 0;
}

@media (max-width: 900px) {
    .jb360-expertise .jb360-expertise-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jb360-expertise .jb360-expertise-grid > .wp-block-column {
        width: auto;
        flex-basis: auto;
    }
}

@media (max-width: 600px) {
    .jb360-expertise .jb360-expertise-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* =========================================================
   JB360 UI — FAQ
   ========================================================= */

.jb360-faq .jb360-faq-item {
    position: relative;
    border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
    box-shadow: var(--wp--custom--shadow--small);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.jb360-faq .jb360-faq-item:hover {
    border-color: color-mix(
        in srgb,
        var(--wp--preset--color--accent) 30%,
        transparent
    );
}

.jb360-faq .jb360-faq-item[open] {
    border-color: color-mix(
        in srgb,
        var(--wp--preset--color--accent) 45%,
        transparent
    );
    box-shadow: var(--wp--custom--shadow--medium);
}

.jb360-faq .jb360-faq-item summary {
    position: relative;
    padding-right: 3rem;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.jb360-faq .jb360-faq-item summary::-webkit-details-marker {
    display: none;
}

.jb360-faq .jb360-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(
        in srgb,
        var(--wp--preset--color--accent) 15%,
        transparent
    );
    color: var(--wp--preset--color--primary);
    font-size: 1.25rem;
    line-height: 1;
    transform: translateY(-50%);
    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.jb360-faq .jb360-faq-item[open] summary::after {
    content: "−";
    background: var(--wp--preset--color--accent);
}

.jb360-faq .jb360-faq-item summary + * {
    margin-top: 1rem;
}


/* Motion */

@media (prefers-reduced-motion: reduce) {
    .jb360-expertise .jb360-expertise-card,
    .jb360-expertise .jb360-expertise-card::before,
    .jb360-faq .jb360-faq-item,
    .jb360-faq .jb360-faq-item summary::after {
        transition: none;
    }

    .jb360-expertise .jb360-expertise-card:hover {
        transform: none;
    }
}


/* JB360 UI — FAQ compact interaction */

.jb360-faq .jb360-faq-item {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.jb360-faq .jb360-faq-item[open] {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

.jb360-faq .jb360-faq-item:not([open]) summary {
    margin-bottom: 0;
}

.jb360-faq .jb360-faq-item[open] summary {
    color: var(--wp--preset--color--primary);
}

.jb360-faq .jb360-faq-item > p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   JB360 UI — Forms
   ========================================================= */

.jb360-form {
    width: min(100%, 58rem);
    margin-inline: auto;
    color: var(--wp--preset--color--foreground);
}

.jb360-form__header {
    margin-bottom: 2rem;
    text-align: center;
}

.jb360-form__title {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.jb360-form__description {
    max-width: 42rem;
    margin: 0 auto;
    color: var(--wp--preset--color--muted);
}


/* Progress */

.jb360-form__progress {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.jb360-form__progress-step {
    display: flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid color-mix(
        in srgb,
        var(--wp--preset--color--primary) 16%,
        transparent
    );
    border-radius: 999px;
    background: var(--wp--preset--color--surface);
    color: var(--wp--preset--color--muted);
    font-size: 0.8rem;
    font-weight: 700;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.jb360-form__progress-step.is-active {
    border-color: var(--wp--preset--color--accent);
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--primary);
    transform: scale(1.08);
}

.jb360-form__progress-step.is-complete {
    border-color: var(--wp--preset--color--primary);
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--surface);
}


/* Step */

.jb360-form__step {
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid color-mix(
        in srgb,
        var(--wp--preset--color--primary) 10%,
        transparent
    );
    border-radius: var(--wp--custom--radius--large);
    background: var(--wp--preset--color--surface);
    box-shadow: var(--wp--custom--shadow--medium);
}

.jb360-form__step-header {
    margin-bottom: 1.75rem;
}

.jb360-form__step-header h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.jb360-form__step-header p {
    margin-top: 0;
    color: var(--wp--preset--color--muted);
}


/* Fields */

.jb360-form__fields {
    display: grid;
    gap: 1.35rem;
}

.jb360-form__field > label,
.jb360-form__field legend {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--wp--preset--color--foreground);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.4;
}

.jb360-form__field input:not([type="radio"]):not([type="checkbox"]),
.jb360-form__field select,
.jb360-form__field textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid color-mix(
        in srgb,
        var(--wp--preset--color--primary) 20%,
        transparent
    );
    border-radius: var(--wp--custom--radius--medium);
    background: var(--wp--preset--color--surface);
    color: var(--wp--preset--color--foreground);
    font: inherit;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.jb360-form__field textarea {
    min-height: 8rem;
    resize: vertical;
}

.jb360-form__field input:not([type="radio"]):not([type="checkbox"]):focus,
.jb360-form__field select:focus,
.jb360-form__field textarea:focus {
    border-color: var(--wp--preset--color--accent);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(
        in srgb,
        var(--wp--preset--color--accent) 22%,
        transparent
    );
}


/* Choice cards */

.jb360-form__field fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.jb360-form__choices {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 11rem), 1fr)
    );
    gap: 0.65rem;
}

/* Balanced choice grids */

.jb360-form__choices:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jb360-form__choices:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jb360-form__choices:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


.jb360-form__choice {
    position: relative;
    display: flex;
    min-height: 3.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.9rem;
    border: 1px solid color-mix(
        in srgb,
        var(--wp--preset--color--primary) 14%,
        transparent
    );
    border-radius: var(--wp--custom--radius--medium);
    background: var(--wp--preset--color--surface);
    color: var(--wp--preset--color--foreground);
    cursor: pointer;
    text-align: center;
    box-shadow: none;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.jb360-form__choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.jb360-form__choice span {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.jb360-form__choice:hover {
    border-color: color-mix(
        in srgb,
        var(--wp--preset--color--accent) 60%,
        var(--wp--preset--color--primary)
    );
    box-shadow: 0 2px 8px color-mix(
        in srgb,
        var(--wp--preset--color--primary) 8%,
        transparent
    );
}

.jb360-form__choice:has(input:checked) {
    border-color: var(--wp--preset--color--accent);
    background: color-mix(
        in srgb,
        var(--wp--preset--color--accent) 13%,
        var(--wp--preset--color--surface)
    );
    box-shadow: inset 0 0 0 1px color-mix(
        in srgb,
        var(--wp--preset--color--accent) 70%,
        transparent
    );
}

.jb360-form__choice:has(input:checked)::after {
    content: "✓";
    position: absolute;
    top: 0.45rem;
    right: 0.5rem;
    display: flex;
    width: 1.15rem;
    height: 1.15rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--primary);
    font-size: 0.65rem;
    font-weight: 800;
}

.jb360-form__choice:has(input:focus-visible) {
    outline: 3px solid color-mix(
        in srgb,
        var(--wp--preset--color--accent) 55%,
        transparent
    );
    outline-offset: 3px;
}


/* Actions */

.jb360-form__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.jb360-form__actions button {
    min-height: 2.75rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--wp--custom--radius--medium);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.jb360-form__next,
.jb360-form__submit {
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--primary);
}

.jb360-form__previous {
    border-color: color-mix(
        in srgb,
        var(--wp--preset--color--primary) 16%,
        transparent
    ) !important;
    background: transparent;
    color: var(--wp--preset--color--foreground);
}

.jb360-form__actions button:hover {
    transform: translateY(-1px);
    box-shadow: var(--wp--custom--shadow--small);
}

.jb360-form__actions button:focus-visible {
    outline: 3px solid color-mix(
        in srgb,
        var(--wp--preset--color--accent) 55%,
        transparent
    );
    outline-offset: 3px;
}


/* Conditional fields */

.jb360-form__field[hidden],
.jb360-form__step[hidden] {
    display: none !important;
}


/* Mobile */

@media (max-width: 600px) {
    .jb360-form__progress {
        gap: 0.35rem;
    }

    .jb360-form__progress-step {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.72rem;
    }

    .jb360-form__step {
        padding: 1.25rem;
    }

    .jb360-form__choices,
    .jb360-form__choices:has(> :nth-child(2):last-child),
    .jb360-form__choices:has(> :nth-child(3):last-child),
    .jb360-form__choices:has(> :nth-child(4):last-child) {
        grid-template-columns: minmax(0, 1fr);
    }

    .jb360-form__choice {
        min-height: 3.5rem;
        justify-content: flex-start;
        padding-right: 3rem;
        text-align: left;
    }

    .jb360-form__actions {
        flex-wrap: wrap;
    }

    .jb360-form__actions button {
        flex: 1 1 8rem;
    }
}


/* Form motion */

@media (prefers-reduced-motion: reduce) {
    .jb360-form__progress-step,
    .jb360-form__choice,
    .jb360-form__field input,
    .jb360-form__field select,
    .jb360-form__field textarea,
    .jb360-form__actions button {
        transition: none;
    }

    .jb360-form__choice:hover,
    .jb360-form__actions button:hover {
        transform: none;
    }
}


/* Checkbox */

.jb360-form__checkbox {
    display: inline-flex;
    max-width: 100%;
    gap: 0.6rem;
    align-items: flex-start;
    color: var(--wp--preset--color--foreground);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.45;
}

.jb360-form__checkbox input[type="checkbox"] {
    appearance: auto;
    box-sizing: border-box;
    width: 1rem;
    height: 1rem;
    min-height: 0;
    margin: 0.12rem 0 0;
    padding: 0;
    flex: 0 0 1rem;
    accent-color: var(--wp--preset--color--accent);
    cursor: pointer;
}

.jb360-form__checkbox > span {
    flex: 1;
}

.jb360-form__checkbox:has(input:focus-visible) {
    outline: 2px solid color-mix(
        in srgb,
        var(--wp--preset--color--accent) 50%,
        transparent
    );
    outline-offset: 4px;
    border-radius: 0.25rem;
}


/* =========================================================
   JB360 Motion
   Lightweight progressive reveal primitives.
   ========================================================= */

.jb360-motion-ready [data-jb360-reveal] {
    opacity: 0;
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--jb360-reveal-delay, 0ms);
    will-change: opacity, transform;
}

.jb360-motion-ready [data-jb360-reveal="up"] {
    transform: translate3d(0, 28px, 0) scale(0.985);
}

.jb360-motion-ready [data-jb360-reveal="fade"] {
    transform: none;
}

.jb360-motion-ready [data-jb360-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

[data-jb360-reveal][data-jb360-delay="1"] {
    --jb360-reveal-delay: 110ms;
}

[data-jb360-reveal][data-jb360-delay="2"] {
    --jb360-reveal-delay: 220ms;
}

[data-jb360-reveal][data-jb360-delay="3"] {
    --jb360-reveal-delay: 330ms;
}

[data-jb360-reveal][data-jb360-delay="4"] {
    --jb360-reveal-delay: 440ms;
}


/* Reusable premium hover primitive. */

.jb360-hover-lift {
    transition:
        transform var(--wp--custom--transition--normal),
        box-shadow var(--wp--custom--transition--normal),
        border-color var(--wp--custom--transition--normal);
}

@media (hover: hover) and (pointer: fine) {
    .jb360-hover-lift:hover {
        transform: translateY(-4px);
        box-shadow: var(--wp--custom--shadow--medium);
    }
}


/* Motion accessibility. */

@media (prefers-reduced-motion: reduce) {
    .jb360-motion-ready [data-jb360-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .jb360-hover-lift {
        transition: none;
    }

    .jb360-hover-lift:hover {
        transform: none;
    }
}

/* =========================================================
   JB360 Icon system
   Decorative expertise icon primitive.
   ========================================================= */

.jb360-expertise-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 5rem;
    height: 5rem;
    flex: 0 0 5rem;
    margin-bottom: 1.65rem;

    border: 2px solid currentColor;
    border-radius: 1rem;

    box-shadow:
        0 7px 18px rgba(16, 42, 46, 0.10);

    transition:
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 260ms ease;
}

.jb360-expertise-icon svg {
    display: block;
    width: 3rem;
    height: 3rem;
}


/* Energy — photovoltaic */

.jb360-expertise-icon--solar {
    color: #003f4b;
    background: #f4b400;
    border-color: #f4b400;
}


/* Building envelope — roofing */

.jb360-expertise-icon--roof {
    color: #ffffff;
    background: #006f80;
    border-color: #006f80;
}


/* Structure — timber framing */

.jb360-expertise-icon--timber {
    color: #ffffff;
    background: #a9683a;
    border-color: #a9683a;
}


/* Water management — guttering */

.jb360-expertise-icon--gutter {
    color: #ffffff;
    background: #16899a;
    border-color: #16899a;
}


/* Energy efficiency — insulation */

.jb360-expertise-icon--insulation {
    color: #d68d00;
    background: #ffffff;
    border-color: #e4a019;
}


/* Global project / home */

.jb360-expertise-icon--home {
    color: #003f4b;
    background: #f4b400;
    border-color: #f4b400;
    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.14);
}


@media (hover: hover) and (pointer: fine) {
    .jb360-expertise-card:hover .jb360-expertise-icon {
        transform: translateY(-4px) scale(1.035);

        box-shadow:
            0 12px 25px rgba(16, 42, 46, 0.16);
    }
}


@media (max-width: 781px) {
    .jb360-expertise-icon {
        width: 4.5rem;
        height: 4.5rem;
        flex-basis: 4.5rem;
        margin-bottom: 1.35rem;
    }

    .jb360-expertise-icon svg {
        width: 2.65rem;
        height: 2.65rem;
    }
}


@media (prefers-reduced-motion: reduce) {
    .jb360-expertise-icon {
        transition: none;
    }

    .jb360-expertise-card:hover .jb360-expertise-icon {
        transform: none;
    }
}

/* =========================================================
   JB360 Section rhythm
   Shared editorial breathing for major content components.
   ========================================================= */

.jb360-expertise,
.jb360-process,
.jb360-faq {
    padding-block: clamp(6.5rem, 9vw, 8.5rem);
}

.jb360-expertise > :first-child,
.jb360-process > :first-child,
.jb360-faq > :first-child {
    margin-top: 0;
}

.jb360-expertise > :last-child,
.jb360-process > :last-child,
.jb360-faq > :last-child {
    margin-bottom: 0;
}

.jb360-expertise .jb360-expertise-grid,
.jb360-process .jb360-process-grid,
.jb360-faq .jb360-faq-list {
    margin-top: clamp(2.5rem, 4vw, 3.75rem);
}

.jb360-expertise > h2,
.jb360-process > h2,
.jb360-faq > h2 {
    margin-bottom: 1rem;
}

@media (max-width: 781px) {
    .jb360-expertise,
    .jb360-process,
    .jb360-faq {
        padding-block: clamp(4.5rem, 14vw, 6rem);
    }

    .jb360-expertise .jb360-expertise-grid,
    .jb360-process .jb360-process-grid,
    .jb360-faq .jb360-faq-list {
        margin-top: clamp(2rem, 8vw, 3rem);
    }
}

/* =========================================================
   JB360 UI — Feature panel
   Native Gutenberg editorial media/content panel.
   ========================================================= */

.jb360-feature-panel {
    position: relative;
    width: min(
        calc(100% - clamp(2rem, 6vw, 6rem)),
        var(--wp--style--global--wide-size)
    );
    margin-inline: auto;
    margin-block: clamp(2rem, 5vw, 4.5rem);
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid color-mix(
        in srgb,
        var(--wp--preset--color--foreground) 8%,
        transparent
    );
    border-radius: var(--wp--custom--radius--large);
    background: var(--wp--preset--color--surface);
    box-shadow: var(--wp--custom--shadow--soft);
}

.jb360-feature-panel > .wp-block-columns {
    min-height: clamp(390px, 38vw, 470px);
    margin-bottom: 0;
    gap: 0;
    align-items: stretch;
}

/* Optional alternating layout for future panels. */
.jb360-feature-panel--reverse > .wp-block-columns {
    flex-direction: row-reverse;
}

/*
 * PEH currently carries the reverse modifier in its FSE markup,
 * while its desired presentation is visual left / content right.
 * Keep the generic modifier available; neutralise this legacy
 * combination until the DB instance is edited natively.
 */
.jb360-feature-panel.jb360-feature-panel--reverse > .wp-block-columns {
    flex-direction: row;
}

.jb360-feature-panel__visual {
    position: relative;
    flex-basis: 46% !important;
    min-height: clamp(390px, 38vw, 470px);
    overflow: hidden;
    background: var(--wp--preset--color--background);
}

.jb360-feature-panel__visual-inner {
    width: 100%;
    height: 100%;
    min-height: clamp(390px, 38vw, 470px) !important;
    border-radius: 0 !important;
}

.jb360-feature-panel__visual .wp-block-image,
.jb360-feature-panel__visual .wp-block-cover {
    width: 100%;
    height: 100%;
    margin: 0;
}

.jb360-feature-panel__visual .wp-block-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(390px, 38vw, 470px);
    object-fit: cover;
    transition: transform 700ms cubic-bezier(.2, .8, .2, 1);
}

.jb360-feature-panel:hover
    .jb360-feature-panel__visual
    .wp-block-image img {
    transform: scale(1.025);
}

.jb360-feature-panel__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-basis: 54% !important;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.25rem, 5vw, 4.75rem);
    background: var(--wp--preset--color--surface);
}

.jb360-feature-panel__content > * {
    max-width: 38rem;
}

.jb360-feature-panel__content > :first-child {
    margin-top: 0;
}

.jb360-feature-panel__content > :last-child {
    margin-bottom: 0;
}

.jb360-feature-panel__content::before {
    content: "";
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 999px;
    background: var(--wp--preset--color--accent);
}

.jb360-feature-panel__content > .has-small-font-size:first-child {
    margin-bottom: clamp(.8rem, 1.5vw, 1.15rem);
    letter-spacing: .08em;
}

.jb360-feature-panel__content > .wp-block-heading {
    max-width: 12ch;
    margin-top: 0;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    font-size: clamp(2rem, 3.25vw, 3.5rem);
    line-height: .98;
    letter-spacing: -.035em;
}

.jb360-feature-panel__content > .has-lead-font-size {
    max-width: 34rem;
    margin-top: 0;
    line-height: 1.65;
}

@media (max-width: 781px) {
    .jb360-feature-panel {
        width: min(
            calc(100% - 2rem),
            var(--wp--style--global--wide-size)
        );
        margin-block: 2rem;
    }

    .jb360-feature-panel > .wp-block-columns,
    .jb360-feature-panel--reverse > .wp-block-columns,
    .jb360-feature-panel.jb360-feature-panel--reverse > .wp-block-columns {
        min-height: 0;
        flex-direction: column;
    }

    .jb360-feature-panel__visual,
    .jb360-feature-panel__visual-inner {
        min-height: clamp(280px, 72vw, 400px) !important;
    }

    .jb360-feature-panel__visual .wp-block-image img {
        min-height: clamp(280px, 72vw, 400px);
    }

    .jb360-feature-panel__content {
        padding: clamp(2rem, 8vw, 3rem);
    }

    .jb360-feature-panel__content > .wp-block-heading {
        max-width: 15ch;
        font-size: clamp(2rem, 9vw, 3rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jb360-feature-panel__visual .wp-block-image img {
        transition: none;
    }

    .jb360-feature-panel:hover
        .jb360-feature-panel__visual
        .wp-block-image img {
        transform: none;
    }
}


/* =========================================================
   JB360 UI — Section panel
   Generic editorial surface for native Gutenberg sections.
   ========================================================= */

.jb360-section-panel {
    position: relative;
    width: min(
        calc(100% - clamp(2rem, 3vw, 3rem)),
        var(--wp--style--global--wide-size)
    );
    margin-inline: auto;
    margin-block: clamp(2rem, 5vw, 4.5rem);
    padding:
        clamp(3rem, 6vw, 5.5rem)
        clamp(2rem, 5vw, 5rem) !important;
    overflow: hidden;
    border: 1px solid color-mix(
        in srgb,
        var(--wp--preset--color--foreground) 8%,
        transparent
    );
    border-radius: var(--wp--custom--radius--large);
    background: var(--wp--preset--color--surface);
    box-shadow: var(--wp--custom--shadow--soft);
}

.jb360-section-panel > :first-child {
    margin-top: 0;
}

.jb360-section-panel > :last-child {
    margin-bottom: 0;
}


/* Strong contrast surface. */

.jb360-section-panel--dark {
    border-color: color-mix(
        in srgb,
        var(--wp--preset--color--surface) 14%,
        transparent
    );
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--surface);
}


/* Reduced vertical density. */

.jb360-section-panel--compact {
    padding-block:
        clamp(2.25rem, 4vw, 3.5rem) !important;
}


@media (max-width: 781px) {

    .jb360-section-panel {
        width: min(
            calc(100% - 2rem),
            var(--wp--style--global--wide-size)
        );
        margin-block: 2rem;
        padding:
            clamp(2.25rem, 8vw, 3.25rem)
            clamp(1.5rem, 6vw, 2.25rem) !important;
    }
}


/* =========================================================
   JB360 UI — Projects section
   Compact editorial rhythm around the native project grid.
   ========================================================= */

.jb360-projects {
    padding-top: clamp(2.75rem, 5vw, 4.5rem) !important;
    padding-bottom: clamp(2rem, 3vw, 3rem) !important;
}

.jb360-projects .wp-block-query {
    margin-top: clamp(1.5rem, 2.5vw, 2rem) !important;
}

@media (max-width: 600px) {
    .jb360-projects {
        padding-top: 2.5rem !important;
        padding-bottom: 2rem !important;
    }
}


/* =========================================================
   JB360 UI — Homepage proportion polish
   Refines hierarchy without changing native block structure.
   ========================================================= */

/*
 * Expertise panel:
 * the generic section panel remains generous elsewhere,
 * while this dense six-card composition starts sooner.
 */
.jb360-expertise.jb360-section-panel {
    padding-top: clamp(1.5rem, 2.5vw, 2.5rem) !important;
    padding-bottom: clamp(2.5rem, 4vw, 3.75rem) !important;
}

/*
 * Give the expertise introduction a tighter editorial rhythm.
 */
.jb360-expertise.jb360-section-panel > .wp-block-group:first-child,
.jb360-expertise.jb360-section-panel > .wp-block-group:first-of-type {
    margin-top: 0;
}

.jb360-expertise .wp-block-heading {
    text-wrap: balance;
}

@media (max-width: 781px) {
    .jb360-expertise.jb360-section-panel {
        padding-top: 1.5rem !important;
        padding-bottom: 2.25rem !important;
    }
}


/* =========================================================
   JB360 UI — Continuous page signature V2
   One neutral canvas, transparent sections, architectural lines.
   ========================================================= */

/* Home hero hierarchy. */
.home main > .wp-block-group:first-child .has-hero-font-size {
    max-width: 11.5ch;
    font-size: clamp(2.75rem, 4.35vw, 4.15rem);
    line-height: 1.01;
    letter-spacing: -0.032em;
    text-wrap: balance;
}


/* ---------------------------------------------------------
   Global canvas
   --------------------------------------------------------- */

.home main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fbfcfa;
}

/*
 * Gutenberg sections using the page-background semantic colour
 * become transparent on the homepage. The canvas is therefore
 * continuous instead of being rebuilt section by section.
 */
.home main > .has-background-background-color {
    background-color: transparent !important;
}


/* ---------------------------------------------------------
   Architectural continuity
   --------------------------------------------------------- */

/*
 * Decorative lines live above the canvas but below every
 * actual section/content block.
 */
.home main::before,
.home main::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

.home main > * {
    position: relative;
    z-index: 1;
}

/*
 * Large solar orbit.
 * It crosses the hero / expertise / solar transition.
 */
.home main::before {
    top: 8rem;
    right: clamp(-23rem, -17vw, -10rem);
    width: clamp(42rem, 67vw, 76rem);
    aspect-ratio: 1;
    border: 1px solid
        color-mix(
            in srgb,
            var(--wp--preset--color--accent) 26%,
            transparent
        );
    box-shadow:
        0 0 0 clamp(5rem, 9vw, 10rem)
        color-mix(
            in srgb,
            var(--wp--preset--color--accent) 2%,
            transparent
        ),
        0 0 0 clamp(10rem, 17vw, 19rem)
        color-mix(
            in srgb,
            var(--wp--preset--color--accent) 1.2%,
            transparent
        );
}

/*
 * Lower construction orbit.
 * Visible through Process / Projects / About / FAQ.
 */
.home main::after {
    top: 46%;
    left: clamp(-32rem, -22vw, -14rem);
    width: clamp(48rem, 76vw, 88rem);
    aspect-ratio: 1.35;
    border: 1px solid
        color-mix(
            in srgb,
            var(--wp--preset--color--primary) 13%,
            transparent
        );
    transform: rotate(-11deg);
}


/* ---------------------------------------------------------
   Preserve intentional surfaces
   --------------------------------------------------------- */

/*
 * Components that are deliberately cards/panels retain their
 * own surfaces above the global decorative canvas.
 */
.home .jb360-section-panel,
.home .jb360-feature-panel,
.home .jb360-project-card,
.home .jb360-process-step {
    position: relative;
    z-index: 2;
}

/*
 * The expertise panel is explicitly white; it must not inherit
 * the transparent homepage-section treatment.
 */
.home .jb360-expertise.jb360-section-panel {
    background: var(--wp--preset--color--surface) !important;
}


/* ---------------------------------------------------------
   Editorial signature
   --------------------------------------------------------- */

.home main p.has-accent-color.has-small-font-size {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.home main p.has-accent-color.has-small-font-size::before {
    content: "";
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 2px;
    border-radius: 999px;
    background: var(--wp--preset--color--accent);
}

/* Hero eyebrow remains deliberately simple. */
.home main > .wp-block-group:first-child
    p.has-accent-color.has-small-font-size::before {
    display: none;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 781px) {
    .home main > .wp-block-group:first-child .has-hero-font-size {
        max-width: 12ch;
        font-size: clamp(2.5rem, 10vw, 3.35rem);
        line-height: 1.02;
    }

    .home main::before {
        top: 17rem;
        right: -24rem;
        width: 42rem;
    }

    .home main::after {
        top: 54%;
        left: -30rem;
        width: 52rem;
    }
}


/* =========================================================
   JB360 UI — Project cards V2
   Editorial ordering, stronger imagery and restrained motion.
   ========================================================= */

.jb360-project-grid {
    align-items: stretch;
}

.jb360-project-grid > li {
    height: 100%;
}

.jb360-project-card {
    height: 100%;
    overflow: hidden;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.jb360-project-card .wp-block-post-featured-image {
    margin-bottom: 0;
}

.jb360-project-card .wp-block-post-featured-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 260ms ease;
}

.jb360-project-card > .wp-block-group {
    padding-top: clamp(0.9rem, 1.5vw, 1.15rem);
}

.jb360-project-card .wp-block-post-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: clamp(1.15rem, 1.55vw, 1.4rem) !important;
    line-height: 1.08;
    letter-spacing: -0.018em;
    text-wrap: balance;
}

.jb360-project-card .jb360-project-meta {
    margin-top: 0.7rem;
}

.jb360-project-card .jb360-project-meta p {
    margin: 0;
    line-height: 1.35;
}

@media (hover: hover) and (pointer: fine) {
    .jb360-project-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(16, 42, 46, 0.08);
    }

    .jb360-project-card:hover .wp-block-post-featured-image img {
        transform: scale(1.018);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jb360-project-card,
    .jb360-project-card .wp-block-post-featured-image img {
        transition: none;
    }

    .jb360-project-card:hover,
    .jb360-project-card:hover .wp-block-post-featured-image img {
        transform: none;
    }
}


/* =========================================================
   JB360 UI — Project cards V2.1
   Keep every project card aligned from the same grid baseline.
   ========================================================= */

.jb360-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
}

.jb360-project-grid > li {
    display: flex;
    height: auto;
    margin: 0;
}

.jb360-project-grid > li > .jb360-project-card {
    width: 100%;
    height: 100%;
    margin: 0;
}

@media (max-width: 781px) {
    .jb360-project-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   JB360 — Atmospheric signature V2.3
   Decorative atmosphere on neutral homepage sections.
   ========================================================= */

.home main > .has-background-background-color {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.home main > .has-background-background-color > * {
    position: relative;
    z-index: 1;
}

/*
 * Solar halo — hero.
 */
.home main > .has-background-background-color:first-child::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -22rem;
    right: clamp(-20rem, -12vw, -8rem);
    width: clamp(46rem, 66vw, 76rem);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            color-mix(
                in srgb,
                var(--wp--preset--color--accent) 20%,
                transparent
            ) 0%,
            color-mix(
                in srgb,
                var(--wp--preset--color--accent) 8%,
                transparent
            ) 38%,
            transparent 70%
        );
    border: 1px solid
        color-mix(
            in srgb,
            var(--wp--preset--color--accent) 35%,
            transparent
        );
}

/*
 * PEH halo — projects.
 */
.home .jb360-projects::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -24rem;
    left: clamp(-27rem, -18vw, -12rem);
    width: clamp(52rem, 74vw, 84rem);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            color-mix(
                in srgb,
                var(--wp--preset--color--primary) 13%,
                transparent
            ) 0%,
            color-mix(
                in srgb,
                var(--wp--preset--color--primary) 5%,
                transparent
            ) 42%,
            transparent 72%
        );
    border: 1px solid
        color-mix(
            in srgb,
            var(--wp--preset--color--primary) 24%,
            transparent
        );
}

/*
 * Solar echo — FAQ.
 */
.home .jb360-faq::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: clamp(-24rem, -15vw, -10rem);
    bottom: -28rem;
    width: clamp(48rem, 68vw, 78rem);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            color-mix(
                in srgb,
                var(--wp--preset--color--accent) 13%,
                transparent
            ) 0%,
            color-mix(
                in srgb,
                var(--wp--preset--color--accent) 4%,
                transparent
            ) 45%,
            transparent 72%
        );
}

@media (max-width: 781px) {

    .home main > .has-background-background-color:first-child::after {
        top: -10rem;
        right: -26rem;
        width: 46rem;
    }

    .home .jb360-projects::before {
        top: -12rem;
        left: -30rem;
        width: 50rem;
    }

    .home .jb360-faq::after {
        right: -28rem;
        bottom: -20rem;
        width: 48rem;
    }
}


/* =========================================================
   JB360 — Proof strip
   Editorial proof points below a hero.
   ========================================================= */

.jb360-proof-strip {
    border-top: 1px solid
        color-mix(
            in srgb,
            var(--wp--preset--color--primary) 8%,
            transparent
        );
    border-bottom: 1px solid
        color-mix(
            in srgb,
            var(--wp--preset--color--primary) 8%,
            transparent
        );
}

.jb360-proof-strip__grid {
    gap: 0;
    align-items: stretch;
}

.jb360-proof-strip__item {
    position: relative;
    padding: 0 clamp(1.25rem, 3vw, 2.75rem);
}

.jb360-proof-strip__item:first-child {
    padding-left: 0;
}

.jb360-proof-strip__item:last-child {
    padding-right: 0;
}

.jb360-proof-strip__item + .jb360-proof-strip__item {
    border-left: 1px solid
        color-mix(
            in srgb,
            var(--wp--preset--color--primary) 12%,
            transparent
        );
}

.jb360-proof-strip__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.jb360-proof-strip__eyebrow span {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    flex: 0 0 2rem;
    border-radius: 50%;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--primary);
    font-size: 0.68rem;
    letter-spacing: 0;
}

.jb360-proof-strip__item h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
    max-width: 20ch;
    font-size: clamp(1.2rem, 1.6vw, 1.55rem);
}

.jb360-proof-strip__item > p:last-child {
    margin-top: 0;
    margin-bottom: 0;
    max-width: 35ch;
    line-height: 1.55;
}

@media (max-width: 781px) {

    .jb360-proof-strip__grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .jb360-proof-strip__item,
    .jb360-proof-strip__item:first-child,
    .jb360-proof-strip__item:last-child {
        padding: 1.25rem 0;
    }

    .jb360-proof-strip__item:first-child {
        padding-top: 0;
    }

    .jb360-proof-strip__item:last-child {
        padding-bottom: 0;
    }

    .jb360-proof-strip__item + .jb360-proof-strip__item {
        border-left: 0;
        border-top: 1px solid
            color-mix(
                in srgb,
                var(--wp--preset--color--primary) 12%,
                transparent
            );
    }
}


/* =========================================================
   JB360 — Proof strip mobile V2.2
   Compact editorial proof points without decorative badges.
   ========================================================= */

@media (max-width: 781px) {

    .home .jb360-proof-strip {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    .home .jb360-proof-strip__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home .jb360-proof-strip__item,
    .home .jb360-proof-strip__item:first-child,
    .home .jb360-proof-strip__item:last-child {
        display: block;
        padding: 1rem 0;
    }

    .home .jb360-proof-strip__item:first-child {
        padding-top: 0.65rem;
    }

    .home .jb360-proof-strip__item:last-child {
        padding-bottom: 0.65rem;
    }

    .home .jb360-proof-strip__item + .jb360-proof-strip__item {
        border-left: 0;
        border-top: 1px solid
            color-mix(
                in srgb,
                var(--wp--preset--color--primary) 10%,
                transparent
            );
    }

    .home .jb360-proof-strip__eyebrow {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        margin: 0 0 0.35rem;
        color: var(--wp--preset--color--accent) !important;
        font-size: 0.67rem !important;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.075em;
        text-transform: uppercase;
    }

    .home .jb360-proof-strip__eyebrow::before {
        content: "";
        width: 1.5rem;
        height: 1px;
        flex: 0 0 1.5rem;
        background: var(--wp--preset--color--accent);
    }

    .home .jb360-proof-strip__eyebrow span {
        display: none;
    }

    .home .jb360-proof-strip__item h3 {
        margin: 0;
        max-width: none;
        font-size: 1.08rem;
        line-height: 1.16;
    }

    .home .jb360-proof-strip__item > p:last-child {
        margin: 0.35rem 0 0;
        max-width: none;
        font-size: 0.82rem;
        line-height: 1.45;
    }
}


/* =========================================================
   JB360 — Process timeline V2
   Horizontal journey on desktop / vertical journey on mobile.
   ========================================================= */

.home .jb360-process {
    overflow: hidden;
}

.home .jb360-process .jb360-process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: start;
}

/*
 * Continuous journey line.
 */
.home .jb360-process .jb360-process-grid::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 1.45rem;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            var(--wp--preset--color--accent) 0%,
            color-mix(
                in srgb,
                var(--wp--preset--color--primary) 22%,
                transparent
            ) 100%
        );
}

/*
 * A step is now a milestone, not a card.
 */
.home .jb360-process .jb360-process-step {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

.home .jb360-process .jb360-process-step:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

/*
 * Numbered milestone.
 */
.home .jb360-process .jb360-process-number {
    position: relative;
    z-index: 2;
    display: grid;
    width: 2.9rem;
    height: 2.9rem;
    margin: 0 0 1.35rem;
    place-items: center;
    border: 5px solid var(--wp--preset--color--surface);
    border-radius: 50%;
    background: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--primary) !important;
    box-shadow:
        0 0 0 1px
        color-mix(
            in srgb,
            var(--wp--preset--color--accent) 38%,
            transparent
        );
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.home .jb360-process .jb360-process-step h3 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.2rem, 1.65vw, 1.55rem);
    line-height: 1.12;
}

.home .jb360-process .jb360-process-step > p:last-child {
    margin: 0;
    max-width: 29ch;
    color: var(--wp--preset--color--muted);
    line-height: 1.55;
}

/*
 * Subtle rhythm without breaking the continuous journey.
 */
.home .jb360-process .jb360-process-step:nth-child(even) {
    padding-top: 1.35rem;
}

.home .jb360-process .jb360-process-step:nth-child(even)
.jb360-process-number {
    margin-top: -1.35rem;
}


/* ---------------------------------------------------------
   Mobile — vertical timeline
   --------------------------------------------------------- */

@media (max-width: 781px) {

    .home .jb360-process {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    .home .jb360-process .jb360-process-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 2rem !important;
    }

    .home .jb360-process .jb360-process-grid::before {
        top: 1.35rem;
        bottom: 1.35rem;
        left: 1.4rem;
        right: auto;
        width: 1px;
        height: auto;
        background:
            linear-gradient(
                180deg,
                var(--wp--preset--color--accent) 0%,
                color-mix(
                    in srgb,
                    var(--wp--preset--color--primary) 20%,
                    transparent
                ) 100%
            );
    }

    .home .jb360-process .jb360-process-step,
    .home .jb360-process .jb360-process-step:nth-child(even) {
        display: grid;
        grid-template-columns: 2.9rem minmax(0, 1fr);
        column-gap: 1rem;
        row-gap: 0.25rem;
        padding: 0 0 1.8rem;
    }

    .home .jb360-process .jb360-process-step:last-child {
        padding-bottom: 0;
    }

    .home .jb360-process .jb360-process-number,
    .home .jb360-process .jb360-process-step:nth-child(even)
    .jb360-process-number {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 2.8rem;
        height: 2.8rem;
        margin: 0;
        border-width: 4px;
    }

    .home .jb360-process .jb360-process-step h3 {
        grid-column: 2;
        margin: 0.1rem 0 0;
        font-size: 1.12rem;
    }

    .home .jb360-process .jb360-process-step > p:last-child {
        grid-column: 2;
        margin: 0.15rem 0 0;
        max-width: none;
        font-size: 0.86rem;
        line-height: 1.45;
    }
}

/* =========================================================
   JB360 — Footer V2
   Reusable FSE footer with responsive editorial layout.
   ========================================================= */

.jb360-footer {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 5vw, 5rem) var(--wp--preset--spacing--20) 1.25rem;
}

.jb360-footer::before {
    content: "";
    position: absolute;
    top: -19rem;
    right: -14rem;
    width: 35rem;
    height: 35rem;
    border: 1px solid color-mix(in srgb, white 12%, transparent);
    border-radius: 50%;
    pointer-events: none;
}

.jb360-footer__grid {
    position: relative;
    z-index: 1;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.jb360-footer__brand .wp-block-site-logo {
    margin-bottom: 1.25rem;
}

.jb360-footer__brand .wp-block-site-title {
    margin: 0 0 0.9rem;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 750;
    line-height: 1.15;
}

.jb360-footer__brand .wp-block-site-title a {
    color: inherit;
    text-decoration: none;
}

.jb360-footer__description,
.jb360-footer__location {
    max-width: 35ch;
    color: color-mix(in srgb, white 73%, transparent);
    line-height: 1.65;
}

.jb360-footer__links h3 {
    margin: 0 0 1.5rem;
    font-size: 0.78rem !important;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent);
}

.jb360-footer__links .wp-block-navigation {
    align-items: flex-start;
}

.jb360-footer__links .wp-block-navigation-item__content {
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.jb360-footer__links .wp-block-navigation-item__content:hover,
.jb360-footer__bottom a:hover {
    color: var(--wp--preset--color--accent);
}

.jb360-footer__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.9rem;
    color: var(--wp--preset--color--accent);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.1em;
}

.jb360-footer__eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: currentColor;
}

.jb360-footer__contact h3 {
    max-width: 15ch;
    margin: 0 0 0.8rem;
    font-size: clamp(1.5rem, 2.4vw, 2.2rem) !important;
    line-height: 1.1;
}

.jb360-footer__location {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.jb360-footer__button .wp-block-button__link {
    padding: 0.85rem 1.2rem;
    border-radius: var(--wp--custom--radius--medium);
    font-size: 0.88rem;
    font-weight: 750;
}

.jb360-footer__bottom {
    position: relative;
    z-index: 1;
    gap: 0.8rem 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid color-mix(in srgb, white 19%, transparent);
}

.jb360-footer__bottom p {
    margin: 0;
    color: color-mix(in srgb, white 65%, transparent);
    font-size: 0.78rem !important;
}

.jb360-footer__bottom a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 781px) {
    .jb360-footer {
        padding-top: 3rem;
        padding-bottom: 1.5rem;
    }

    .jb360-footer__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.25rem;
        padding-bottom: 2.5rem;
    }

    .jb360-footer__brand,
    .jb360-footer__links,
    .jb360-footer__contact {
        width: 100%;
        flex-basis: auto !important;
    }

    .jb360-footer__links .wp-block-navigation {
        gap: 0.7rem;
    }

    .jb360-footer__contact h3 {
        max-width: 20ch;
    }

    .jb360-footer__bottom {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jb360-footer .wp-block-button__link {
        transition: none;
    }
}

/* JB360 — Footer V2 / alternate logo */

.jb360-footer__logo {
    width: min(100%, 290px);
    max-width: 290px;
    margin: 0 0 1.5rem;
}

.jb360-footer__logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 781px) {
    .jb360-footer__logo {
        width: min(100%, 250px);
    }
}

/* =========================================================
   JB360 — Process section spacing V2.1
   Section-local spacing; preserves timeline layout.
   ========================================================= */

@media (min-width: 782px) {
    .home .jb360-process {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    .home .jb360-process .jb360-process-grid {
        margin-top: 2.5rem !important;
    }
}

@media (max-width: 781px) {
    .home .jb360-process {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .home .jb360-process .jb360-process-grid {
        margin-top: 2rem !important;
    }
}

/* =========================================================
   JB360 — Global section gutters V1
   Minimum horizontal breathing room for major FSE sections.
   Full-width backgrounds remain edge-to-edge.
   ========================================================= */

:root {
    --jb360-section-gutter: 50px;
}

@media (max-width: 781px) {
    :root {
        --jb360-section-gutter: 20px;
    }
}

@media (max-width: 360px) {
    :root {
        --jb360-section-gutter: 10px;
    }
}

/*
 * Target only major homepage sections.
 * Do not apply to nested cards or components.
 */
.home main > .wp-block-group.alignfull,
.home main > .wp-block-group > .wp-block-group.alignfull,
.home .jb360-process,
.home .jb360-projects,
.home .jb360-faq,
.home .jb360-proof-strip {
    padding-left: max(
        var(--jb360-section-gutter),
        env(safe-area-inset-left, 0px)
    ) !important;

    padding-right: max(
        var(--jb360-section-gutter),
        env(safe-area-inset-right, 0px)
    ) !important;
}

/* =========================================================
   JB360 — Process mobile introduction spacing V2.2
   ========================================================= */

@media (max-width: 781px) {
    .home .jb360-process .jb360-process-grid {
        margin-top: 2.5rem !important;
    }
}


/* ==========================================================
   JB360 OFFERING HERO V2
   Commercial offering template — reusable styles
   ========================================================== */

.jb360-offering-hero-v2 {
    padding: clamp(3rem, 6vw, 6rem) 1.25rem;
    background: var(--wp--preset--color--surface, #fff);
}

.jb360-offering-hero-v2__columns {
    gap: clamp(2rem, 5vw, 5rem);
}

.jb360-offering-hero-v2__eyebrow {
    margin: 0 0 1.25rem;
    color: var(--wp--preset--color--accent, #2563eb);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.jb360-offering-hero-v2__title {
    margin: 0 0 1.5rem;
    font-size: clamp(2.5rem, 4.5vw, 4.75rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
    overflow-wrap: break-word;
}

.jb360-offering-hero-v2__excerpt {
    max-width: 38rem;
    margin-bottom: 1.75rem;
    color: var(--wp--preset--color--muted, #64748b);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.65;
}

.jb360-offering-hero-v2__cta {
    margin-top: 1.75rem;
}

.jb360-offering-hero-v2__cta
.wp-block-jb360-offering-conversion
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.95rem 1.5rem;
    border-radius: 0.65rem;
    background: #f5b400;
    color: #12343b;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.jb360-offering-hero-v2__cta
.wp-block-jb360-offering-conversion
.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.jb360-offering-hero-v2__trust {
    gap: 0.65rem 1.25rem;
    margin-top: 1.5rem;
}

.jb360-offering-hero-v2__trust p {
    margin: 0;
    color: var(--wp--preset--color--foreground, #0f172a);
    font-size: 0.85rem;
    font-weight: 600;
}

.jb360-offering-hero-v2__visual
.wp-block-post-featured-image {
    margin: 0;
    overflow: hidden;
    border-radius: 1.15rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.jb360-offering-hero-v2__visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 781px) {
    .jb360-offering-hero-v2 {
        padding: 2.75rem 1rem;
    }

    .jb360-offering-hero-v2__columns {
        gap: 2rem;
    }

    .jb360-offering-hero-v2__title {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }

    .jb360-offering-hero-v2__trust {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jb360-offering-hero-v2__cta
    .wp-block-button__link {
        transition: none;
    }
}


/* ==========================================================
   JB360 REASSURANCE V2
   ========================================================== */

.jb360-reassurance-v2 {
    padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem;
    background: #f5faf7;
}

.jb360-reassurance-grid {
    gap: 1.25rem;
}

.jb360-reassurance-card {
    height: 100%;
    padding: 1.65rem 1.35rem;
    border: 1px solid rgba(12, 58, 65, 0.08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(12, 58, 65, 0.04);
}

.jb360-reassurance-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 0 1.15rem;
}

.jb360-reassurance-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jb360-reassurance-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.3;
}

.jb360-reassurance-description {
    margin: 0;
    color: #586b70;
    font-size: 0.94rem;
    line-height: 1.6;
}

@media (max-width: 781px) {
    .jb360-reassurance-grid {
        gap: 1rem;
    }
}

/* ==========================================================
   JB360 REASSURANCE V2.2
   Full-width section inside constrained post content
   ========================================================== */

/*
 * Le contenu de l'offre est limité à 760 px.
 * La section de réassurance s'étend à la largeur disponible.
 *
 * Le décalage est calculé depuis le centre du conteneur,
 * sans modifier la largeur des paragraphes suivants.
 */
.wp-block-post-content .jb360-reassurance-v2 {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin-left: -50vw;
    margin-right: 0;
    box-sizing: border-box;
    padding: clamp(3rem, 5vw, 5rem) 24px;
}

/*
 * Le conteneur intérieur exploite toute la largeur utile.
 */
.wp-block-post-content .jb360-reassurance-v2 > .wp-block-group {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

/*
 * Grille responsive indépendante des colonnes Gutenberg.
 */
.wp-block-post-content .jb360-reassurance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    align-items: stretch;
}

.wp-block-post-content .jb360-reassurance-grid > .wp-block-column {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: none;
    margin: 0;
}

.wp-block-post-content .jb360-reassurance-card {
    height: 100%;
    min-height: 190px;
    padding: 28px;
    box-sizing: border-box;
}

.wp-block-post-content .jb360-reassurance-title {
    font-size: 1.1rem;
    overflow-wrap: normal;
    hyphens: none;
}

@media (max-width: 1000px) {
    .wp-block-post-content .jb360-reassurance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wp-block-post-content .jb360-reassurance-v2 {
        padding: 2.5rem 16px;
    }

    .wp-block-post-content .jb360-reassurance-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .wp-block-post-content .jb360-reassurance-card {
        min-height: auto;
        padding: 24px;
    }
}

/* ==========================================================
   JB360 OFFERING CONVERSION V2.3
   ========================================================== */

/* Titres centrés sous les pictogrammes */
.wp-block-post-content .jb360-reassurance-icon {
    margin-left: auto;
    margin-right: auto;
}

.wp-block-post-content .jb360-reassurance-title {
    text-align: center;
}

/* Bandeau de conversion */
.jb360-offering-conversion-v23 {
    padding: clamp(3rem, 5vw, 4.5rem) 24px;
    background: #063f49;
    color: #fff;
}

.jb360-offering-conversion-v23__columns {
    gap: clamp(2rem, 5vw, 5rem);
}

.jb360-offering-conversion-v23__eyebrow {
    margin: 0 0 0.75rem;
    color: #f5b400;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.jb360-offering-conversion-v23__title {
    max-width: 18ch;
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.jb360-offering-conversion-v23__text {
    max-width: 52ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.65;
}

.jb360-offering-conversion-v23__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.jb360-offering-conversion-v23__action
.wp-block-jb360-offering-conversion {
    margin: 0;
}

.jb360-offering-conversion-v23__action
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.95rem 1.5rem;
    border-radius: 0.6rem;
    background: #f5b400;
    color: #12343b;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jb360-offering-conversion-v23__action
.wp-block-button__link:hover {
    background: #ffca28;
    color: #12343b;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

@media (max-width: 781px) {
    .jb360-offering-conversion-v23 {
        padding: 3rem 20px;
    }

    .jb360-offering-conversion-v23__action {
        justify-content: flex-start;
    }

    .jb360-offering-conversion-v23__title {
        max-width: none;
    }
}

/* ==========================================================
   JB360 OFFERING INTRO V1
   ========================================================== */

.wp-block-post-content .jb360-offering-intro-v1 {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin-left: -50vw;
    margin-right: 0;
    box-sizing: border-box;
    padding: 0 24px 4rem;
    background: #f5faf7;
}

.wp-block-post-content .jb360-offering-intro-v1__inner {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(12, 58, 65, 0.12);
}

.wp-block-post-content .jb360-offering-intro-v1__columns {
    gap: clamp(2rem, 5vw, 5rem);
}

.wp-block-post-content .jb360-offering-intro-v1__eyebrow {
    margin: 0 0 0.8rem;
    color: #d99c00;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.wp-block-post-content .jb360-offering-intro-v1__title {
    max-width: 19ch;
    margin: 0;
    color: #12343b;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.wp-block-post-content .jb360-offering-intro-v1__text {
    max-width: 56ch;
    margin: 0;
    color: #53696d;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.75;
}

@media (max-width: 781px) {
    .wp-block-post-content .jb360-offering-intro-v1 {
        padding: 0 20px 3rem;
    }

    .wp-block-post-content .jb360-offering-intro-v1__inner {
        padding-top: 2rem;
    }

    .wp-block-post-content .jb360-offering-intro-v1__title {
        max-width: none;
    }
}

/* ==========================================================
   JB360 OFFERING INTRO V1.1
   Large editorial layout
   ========================================================== */

.wp-block-post-content .jb360-offering-intro-v1__inner {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-post-content .jb360-offering-intro-v1__columns {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    width: 100%;
    max-width: none;
    margin: 0;
    align-items: center;
}

.wp-block-post-content
.jb360-offering-intro-v1__columns > .wp-block-column {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: none;
    margin: 0;
}

.wp-block-post-content .jb360-offering-intro-v1__title {
    max-width: 22ch;
    font-size: clamp(1.8rem, 2.7vw, 2.5rem);
}

.wp-block-post-content .jb360-offering-intro-v1__text {
    max-width: 58ch;
}

@media (max-width: 781px) {
    .wp-block-post-content .jb360-offering-intro-v1__columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .wp-block-post-content .jb360-offering-intro-v1__title {
        max-width: none;
    }
}

/* ==========================================================
   JB360 OFFERING PROCESS V1
   Timeline for offering pages — independent of homepage
   ========================================================== */

.wp-block-post-content .jb360-offering-process-v1 {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin-left: -50vw;
    margin-right: 0;
    box-sizing: border-box;
    padding: clamp(4rem, 6vw, 6rem) 24px;
    background: #fff;
}

.wp-block-post-content .jb360-offering-process-v1__inner {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

.wp-block-post-content .jb360-offering-process-v1__eyebrow {
    margin: 0 0 0.8rem;
    color: #d99c00;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.wp-block-post-content .jb360-offering-process-v1__title {
    margin: 0 0 1rem;
    color: #12343b;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.12;
}

.wp-block-post-content .jb360-offering-process-v1__lead {
    max-width: 65ch;
    margin: 0;
    color: #53696d;
    font-size: 1.08rem;
    line-height: 1.65;
}

.wp-block-post-content .jb360-offering-process-v1 .jb360-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    width: 100%;
    max-width: none;
    margin-top: 3.5rem;
    align-items: start;
}

.wp-block-post-content .jb360-offering-process-v1 .jb360-process-step {
    min-width: 0;
    width: auto;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.wp-block-post-content .jb360-offering-process-v1 .jb360-process-step:hover {
    transform: none;
    box-shadow: none;
    border: 0;
}

.wp-block-post-content .jb360-offering-process-v1 .jb360-process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 0 1.3rem;
    border: 2px solid #f5b400;
    border-radius: 50%;
    background: #fff8df;
    color: #12343b;
    font-size: 1rem;
    font-weight: 800;
}

.wp-block-post-content .jb360-offering-process-v1 .jb360-process-step h3 {
    margin: 0 0 0.7rem;
    color: #12343b;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    line-height: 1.25;
}

.wp-block-post-content .jb360-offering-process-v1 .jb360-process-step > p:last-child {
    margin: 0;
    color: #53696d;
    font-size: 0.96rem;
    line-height: 1.65;
}

@media (max-width: 1000px) {
    .wp-block-post-content .jb360-offering-process-v1 .jb360-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wp-block-post-content .jb360-offering-process-v1 {
        padding: 3rem 20px;
    }

    .wp-block-post-content .jb360-offering-process-v1 .jb360-process-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        margin-top: 2.5rem;
    }
}

/* ==========================================================
   JB360 OFFERING PROCESS V1.1
   Timeline horizontale et alignement éditorial
   ========================================================== */

.wp-block-post-content .jb360-offering-process-v1__inner {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Les textes introductifs suivent le même axe que les étapes */
.wp-block-post-content .jb360-offering-process-v1__eyebrow,
.wp-block-post-content .jb360-offering-process-v1__title,
.wp-block-post-content .jb360-offering-process-v1__lead {
    margin-left: 0;
    margin-right: 0;
}

/* Frise */
@media (min-width: 1001px) {

    .wp-block-post-content
    .jb360-offering-process-v1 .jb360-process-grid {
        position: relative;
        isolation: isolate;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(1.5rem, 3vw, 3rem);
        margin-top: 3.5rem;
    }

    .wp-block-post-content
    .jb360-offering-process-v1 .jb360-process-grid::before {
        content: "";
        position: absolute;
        z-index: 0;
        top: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
        height: 2px;
        background: linear-gradient(
            90deg,
            #f5b400 0%,
            rgba(245, 180, 0, 0.4) 100%
        );
    }

    .wp-block-post-content
    .jb360-offering-process-v1 .jb360-process-step {
        position: relative;
        z-index: 1;
        background: transparent;
    }

    .wp-block-post-content
    .jb360-offering-process-v1 .jb360-process-number {
        position: relative;
        z-index: 2;
        display: inline-flex;
        background: #fff8df;
        box-shadow: 0 0 0 8px #fff;
    }
}

/* Tablette : deux colonnes, sans ligne transversale */
@media (min-width: 601px) and (max-width: 1000px) {

    .wp-block-post-content
    .jb360-offering-process-v1 .jb360-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wp-block-post-content
    .jb360-offering-process-v1 .jb360-process-grid::before {
        content: none;
    }
}

/* Mobile : une colonne */
@media (max-width: 600px) {

    .wp-block-post-content
    .jb360-offering-process-v1 .jb360-process-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-block-post-content
    .jb360-offering-process-v1 .jb360-process-grid::before {
        content: none;
    }
}

/* ==========================================================
   JB360 EDITORIAL SPLIT V1
   Reusable image + editorial content
   ========================================================== */

.wp-block-post-content .jb360-editorial-split-v1 {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin-left: -50vw;
    margin-right: 0;
    box-sizing: border-box;
    padding: clamp(4rem, 6vw, 6rem) 24px;
    background: #f5faf7;
}

.wp-block-post-content .jb360-editorial-split-v1__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

.wp-block-post-content .jb360-editorial-split-v1__columns > .wp-block-column {
    min-width: 0;
    width: auto;
    max-width: none;
    flex: none;
}

.wp-block-post-content .jb360-editorial-split-v1__image {
    margin: 0;
    overflow: hidden;
    border-radius: 1.1rem;
    box-shadow: 0 20px 45px rgba(12, 58, 65, 0.1);
}

.wp-block-post-content .jb360-editorial-split-v1__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.wp-block-post-content .jb360-editorial-split-v1__eyebrow {
    margin: 0 0 0.85rem;
    color: #d99c00;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.wp-block-post-content .jb360-editorial-split-v1__title {
    margin: 0 0 1.5rem;
    color: #12343b;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.wp-block-post-content .jb360-editorial-split-v1__text {
    margin: 0 0 1rem;
    color: #53696d;
    font-size: 1.02rem;
    line-height: 1.75;
}

.wp-block-post-content .jb360-editorial-split-v1__text:last-child {
    margin-bottom: 0;
}

@media (max-width: 781px) {
    .wp-block-post-content .jb360-editorial-split-v1 {
        padding: 3rem 20px;
    }

    .wp-block-post-content .jb360-editorial-split-v1__columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
}

/* ==========================================================
   JB360 OFFERING FAQ V1
   ========================================================== */

.wp-block-post-content .jb360-offering-faq-v1 {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin-left: -50vw;
    margin-right: 0;
    box-sizing: border-box;
    padding: clamp(4rem, 6vw, 6rem) 24px;
    background: #fff;
}

.wp-block-post-content .jb360-offering-faq-v1__inner {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
}

.wp-block-post-content .jb360-offering-faq-v1__eyebrow {
    margin: 0 0 .75rem;
    color: #c99600;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.wp-block-post-content .jb360-offering-faq-v1__title {
    margin: 0 0 1rem;
    color: #12343b;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.wp-block-post-content .jb360-offering-faq-v1__intro {
    max-width: 700px;
    margin: 0;
    color: #53696d;
    line-height: 1.7;
}

.wp-block-post-content .jb360-offering-faq-v1 .jb360-faq-list {
    display: grid;
    gap: 12px;
    max-width: none;
    margin-top: 2.5rem;
}

.wp-block-post-content .jb360-offering-faq-v1 .jb360-faq-item {
    box-sizing: border-box;
    margin: 0;
    padding: 1.15rem 1.5rem !important;
    border: 1px solid #e0e9e7;
    border-radius: 12px;
    background: #f7faf8;
    box-shadow: none;
}

.wp-block-post-content .jb360-offering-faq-v1 .jb360-faq-item[open] {
    padding-top: 1.15rem !important;
    padding-bottom: 1.3rem !important;
    background: #fff;
}

.wp-block-post-content .jb360-offering-faq-v1 .jb360-faq-item summary {
    color: #12343b;
    font-size: 1rem;
    line-height: 1.5;
}

.wp-block-post-content .jb360-offering-faq-v1 .jb360-faq-item p {
    margin: 1rem 0 0;
    color: #53696d;
    font-size: .96rem;
    line-height: 1.75;
}

@media (max-width: 781px) {
    .wp-block-post-content .jb360-offering-faq-v1 {
        padding: 3.5rem 20px;
    }

    .wp-block-post-content .jb360-offering-faq-v1 .jb360-faq-item {
        padding: 1rem 1.1rem !important;
    }
}

/* ==========================================================
   JB360 SINGLE PROJECT V1
   ========================================================== */

.jb360-single-project-v1 {
    background: #ffffff;
}

.jb360-single-project-v1__hero {
    padding: clamp(3rem, 6vw, 5rem) 24px;
    background: #f5faf7;
}

.jb360-single-project-v1__inner {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
}

.jb360-single-project-v1__back {
    margin: 0 0 3rem;
    font-size: .9rem;
}

.jb360-single-project-v1__back a {
    color: #41686b;
    text-decoration: none;
}

.jb360-single-project-v1__back a:hover {
    text-decoration: underline;
}

.jb360-single-project-v1__eyebrow {
    margin: 0 0 1rem;
    color: #c99600;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.jb360-single-project-v1__title {
    max-width: 850px;
    margin: 0 0 2.5rem;
    color: #12343b;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.jb360-single-project-v1__image {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
}

.jb360-single-project-v1__image img {
    display: block;
    width: 100%;
    max-height: 650px;
    object-fit: cover;
    border-radius: 18px;
}

.jb360-single-project-v1__content {
    max-width: 900px;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 4rem) 24px;
}

.jb360-single-project-v1__cta {
    padding: clamp(3.5rem, 6vw, 5rem) 24px;
    background: #12343b;
    color: #ffffff;
}

.jb360-single-project-v1__cta-inner {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
}

.jb360-single-project-v1__cta h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 2.7rem);
}

.jb360-single-project-v1__cta p {
    color: #dce8e7;
}

.jb360-single-project-v1__cta .wp-block-button__link {
    background: #f2bd32;
    color: #12343b;
    font-weight: 700;
}

@media (max-width: 781px) {
    .jb360-single-project-v1__hero {
        padding: 2.5rem 20px 3rem;
    }

    .jb360-single-project-v1__back {
        margin-bottom: 2rem;
    }

    .jb360-single-project-v1__content {
        padding: 2rem 20px;
    }

    .jb360-single-project-v1__cta {
        padding: 3rem 20px;
    }
}

/* ==========================================================
   JB360 PROJECT META HERO V2
   ========================================================== */

.jb360-single-project-v1 .jb360-project-details {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin: 0 0 32px;
}

.jb360-single-project-v1 .jb360-project-meta__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 155px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid rgba(18, 52, 59, .10);
    border-radius: 12px;
}

.jb360-single-project-v1 .jb360-project-meta__label {
    color: #718387;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.jb360-single-project-v1 .jb360-project-meta__value {
    color: #12343b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 600px) {

    .jb360-single-project-v1 .jb360-project-details {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 24px;
    }

    .jb360-single-project-v1 .jb360-project-meta__item {
        min-width: 0;
        padding: 12px 14px;
    }

    .jb360-single-project-v1 .jb360-project-meta__value {
        font-size: 14px;
    }
}

/* ==========================================================
   JB360 PROJECT VISUAL FIX V2
   ========================================================== */

/* Le bloc dynamique possède sa propre classe, sans conflit
   avec les métadonnées des cartes de réalisations. */

.jb360-single-project-v1 .jb360-project-details {
    width: 100%;
    max-width: 1100px;
}

/* Image principale : largeur du conteneur du hero. */

.jb360-single-project-v1 .jb360-single-project-v1__image {
    width: 100%;
    max-width: 100%;
}

.jb360-single-project-v1 .jb360-single-project-v1__image img {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 650px;
    object-fit: cover;
}

/* Aucun espace inutile pour les réalisations sans contenu. */

.jb360-single-project-v1__content:not(:has(.wp-block-post-content > *)) {
    display: none;
}

@media (max-width: 600px) {
    .jb360-single-project-v1 .jb360-project-details {
        width: 100%;
    }
}

/* ==========================================================
   JB360 PROJECT EDITORIAL V1
   ========================================================== */

.jb360-single-project-v1__content:has(.jb360-project-editorial) {
    max-width: 1100px;
    padding-top: clamp(4rem, 7vw, 6rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.jb360-project-editorial {
    display: flex;
    flex-direction: column;
    gap: clamp(3.5rem, 6vw, 5rem);
}

.jb360-project-editorial > .wp-block-group {
    width: 100%;
    max-width: 850px;
    margin-inline: auto;
}

.jb360-project-editorial__eyebrow {
    margin-bottom: 12px;
    color: #c99600;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jb360-project-editorial h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #12343b;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.jb360-project-editorial p,
.jb360-project-editorial li {
    color: #40585d;
    font-size: 17px;
    line-height: 1.8;
}

.jb360-project-editorial__intervention,
.jb360-project-editorial__gallery,
.jb360-project-editorial__highlights {
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid #e1e9e6;
}

.jb360-project-editorial .wp-block-gallery {
    margin-top: 28px;
    gap: 14px;
}

.jb360-project-editorial .wp-block-gallery img {
    border-radius: 14px;
}

@media (max-width: 781px) {

    .jb360-single-project-v1__content:has(.jb360-project-editorial) {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .jb360-project-editorial {
        gap: 3rem;
    }

    .jb360-project-editorial p,
    .jb360-project-editorial li {
        font-size: 16px;
    }
}

/* ==========================================================
   JB360 PROJECT EDITORIAL V4
   ========================================================== */

.jb360-single-project-v1__content:has(.jb360-project-v4) {
    max-width: 1100px;
    padding-top: clamp(4rem, 7vw, 6rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.jb360-project-v4 {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 7vw, 6rem);
}

.jb360-project-v4 > .wp-block-group {
    width: 100%;
}

.jb360-project-v4__intro {
    max-width: 780px;
    margin-inline: auto;
}

.jb360-project-v4__eyebrow {
    margin-bottom: 12px;
    color: #b68a00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jb360-project-v4 h2 {
    margin-top: 0;
    margin-bottom: 22px;
    color: #12343b;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.jb360-project-v4 p,
.jb360-project-v4 li {
    color: #40585d;
    font-size: 17px;
    line-height: 1.75;
}

.jb360-project-v4__intervention,
.jb360-project-v4__gallery,
.jb360-project-v4__highlights {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid #e1e9e6;
}

.jb360-project-v4__columns {
    gap: clamp(2rem, 5vw, 5rem);
    margin-top: 32px;
}

.jb360-project-v4__photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 290px;
    padding: 32px;
    background: #f2f7f4;
    border: 2px dashed #c6d7d1;
    border-radius: 18px;
    text-align: center;
}

.jb360-project-v4__photo-placeholder p {
    max-width: 240px;
    margin: 0;
    color: #6a807a;
    font-size: 14px;
}

.jb360-project-v4__gallery-grid {
    margin-top: 28px;
    gap: 14px;
}

.jb360-project-v4__gallery-grid img {
    border-radius: 14px;
}

.jb360-project-v4__cards {
    gap: 16px;
    margin-top: 30px;
}

.jb360-project-v4__card {
    height: 100%;
    padding: 25px;
    background: #f3f8f5;
    border: 1px solid #e0ebe5;
    border-radius: 16px;
}

.jb360-project-v4__card-label {
    margin-bottom: 8px;
    color: #647d75 !important;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.jb360-project-v4__card-value {
    margin: 0;
    color: #12343b !important;
    font-size: 19px !important;
    font-weight: 750;
    line-height: 1.3 !important;
}

@media (max-width: 781px) {

    .jb360-single-project-v1__content:has(.jb360-project-v4) {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .jb360-project-v4 {
        gap: 3rem;
    }

    .jb360-project-v4__columns {
        gap: 24px;
    }

    .jb360-project-v4__photo-placeholder {
        min-height: 220px;
    }

    .jb360-project-v4 p,
    .jb360-project-v4 li {
        font-size: 16px;
    }
}

/* ==========================================================
   JB360 PROJECT EDITORIAL V4.1
   Masquage des éléments provisoires sur le frontend.
   ========================================================== */

/*
 * Photographie secondaire :
 * masquer uniquement l'emplacement de démonstration.
 */
body.single-jb360_project
.jb360-project-v4__photo-placeholder {
    display: none;
}

/*
 * Si aucune véritable image n'est présente dans
 * la colonne, celle-ci ne doit pas réserver d'espace.
 */
body.single-jb360_project
.jb360-project-v4__photo-column:not(:has(img)) {
    display: none;
}

/*
 * La colonne texte occupe toute la largeur disponible
 * lorsqu'aucune photographie n'est renseignée.
 */
body.single-jb360_project
.jb360-project-v4__columns:not(:has(img))
> .wp-block-column:first-child {
    flex-basis: 100% !important;
}

/*
 * Galerie vide :
 * masquer la section complète jusqu'à l'ajout
 * d'une véritable image Gutenberg.
 */
body.single-jb360_project
.jb360-project-v4__gallery:not(:has(.wp-block-gallery img)) {
    display: none;
}

/*
 * Points clés :
 * section provisoire désactivée sur le frontend.
 * Elle reste présente et modifiable dans Gutenberg.
 */
body.single-jb360_project
.jb360-project-v4__highlights {
    display: none;
}

/*
 * Ne pas masquer les éléments dans l'éditeur Gutenberg.
 */
body.block-editor-page
.jb360-project-v4__photo-placeholder,
body.block-editor-page
.jb360-project-v4__photo-column,
body.block-editor-page
.jb360-project-v4__gallery,
body.block-editor-page
.jb360-project-v4__highlights {
    display: revert;
}

/* =====================================================
   JB360 PROJECT V1.3 — EMPTY GALLERY
   Masquer les sections galerie sans image sur le frontend.
   Les blocs restent visibles dans Gutenberg.
   ===================================================== */

body.single-jb360_project:not(.block-editor-page)
.jb360-project-section--gallery:not(:has(.wp-block-gallery img)) {
    display: none;
}

body.single-jb360_project:not(.block-editor-page)
.jb360-project-editorial__gallery:not(:has(.wp-block-gallery img)) {
    display: none;
}

/* =====================================================
   JB360 PROJECT V1.4 — RESPONSIVE GALLERY
   Galerie native Gutenberg — sans dépendance JS.
   ===================================================== */

body.single-jb360_project
.jb360-project-editorial .wp-block-gallery.has-nested-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

body.single-jb360_project
.jb360-project-editorial .wp-block-gallery.has-nested-images > figure.wp-block-image {
    width: 100%;
    margin: 0;
}

body.single-jb360_project
.jb360-project-editorial .wp-block-gallery.has-nested-images > figure.wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

@media (max-width: 1024px) {
    body.single-jb360_project
    .jb360-project-editorial .wp-block-gallery.has-nested-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body.single-jb360_project
    .jb360-project-editorial .wp-block-gallery.has-nested-images {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =====================================================
   JB360 PROJECT V1.4.1 — GALLERY IMAGE SIZE FIX
   ===================================================== */

body.single-jb360_project
.jb360-project-editorial .wp-block-gallery.has-nested-images
> figure.wp-block-image {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    flex: none !important;
    margin: 0 !important;
    display: block;
}

body.single-jb360_project
.jb360-project-editorial .wp-block-gallery.has-nested-images
> figure.wp-block-image img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

body.single-jb360_project
.jb360-project-editorial .wp-block-gallery.has-nested-images
> figure.wp-block-image a {
    display: block;
    width: 100%;
}

/* =====================================================
   JB360 RECENT PROJECTS V1.5.1
   Uniform cards and neutral image placeholder.
   ===================================================== */

.wp-block-jb360-recent-projects .jb360-project-grid {
    list-style: none;
    padding: 0;
}

.wp-block-jb360-recent-projects .jb360-project-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.wp-block-jb360-recent-projects
.jb360-recent-projects__visual {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.wp-block-jb360-recent-projects
.jb360-recent-projects__visual > a {
    display: block;
    width: 100%;
    height: 100%;
}

.wp-block-jb360-recent-projects
.jb360-recent-projects__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-jb360-recent-projects
.jb360-recent-projects__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--wp--preset--color--base-2, #eef2f0);
    color: var(--wp--preset--color--contrast, #315056);
}

.wp-block-jb360-recent-projects
.jb360-recent-projects__placeholder svg {
    width: clamp(44px, 5vw, 64px);
    height: auto;
    opacity: 0.45;
}

.wp-block-jb360-recent-projects
.jb360-project-card > .wp-block-group {
    flex: 1;
    padding: clamp(16px, 2vw, 22px);
}

.wp-block-jb360-recent-projects
.jb360-project-card .wp-block-post-title {
    margin: 0;
    line-height: 1.2;
}

.wp-block-jb360-recent-projects
.jb360-project-card .jb360-project-meta {
    margin-top: 12px;
}

/* =====================================================
   JB360 HERO IMPACT V2.2
   ===================================================== */

.jb360-pattern-hero-impact .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.jb360-pattern-hero-impact .wp-block-image {
    width: 100%;
    margin: 0;
}

.jb360-pattern-hero-impact .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
}

.jb360-pattern-hero-impact .jb360-hero-image-instruction {
    border: 1px dashed rgba(255,255,255,.4);
    border-radius: 18px;
    padding: 60px 20px;
    text-align: center;
    font-size: 14px;
    opacity: .7;
}

@media (max-width: 781px) {
    .jb360-pattern-hero-impact .wp-block-columns {
        flex-direction: column;
    }

    .jb360-pattern-hero-impact .wp-block-column {
        width: 100%;
        flex-basis: auto !important;
    }
}

/* =====================================================
   JB360 EDITORIAL PATTERNS V1.6.6 — STABLE
   ===================================================== */

.jb360-pattern-editorial .wp-block-columns {
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
}

.jb360-pattern-editorial .wp-block-column {
    min-width: 0;
}

.jb360-pattern-editorial .jb360-editorial-image {
    width: 100%;
    max-width: none;
    margin: 0;
}

.jb360-pattern-editorial .jb360-editorial-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
}

@media (max-width: 781px) {
    .jb360-pattern-editorial .wp-block-columns {
        flex-direction: column;
    }

    .jb360-pattern-editorial .wp-block-column {
        width: 100% !important;
        flex-basis: auto !important;
    }
}

/* =====================================================
   JB360 V1.6.7C — WIDE CONTENT
   ===================================================== */

/*
 * Les sections occupent toute la largeur.
 * Leur contenu intérieur peut atteindre 1440 px.
 * Les paragraphes classiques restent limités par
 * le contentSize natif de Gutenberg.
 */

.jb360-pattern-hero-impact > .wp-block-columns,
.jb360-pattern-editorial > .wp-block-columns {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.jb360-pattern-services > .wp-block-columns,
.jb360-pattern-services > .wp-block-group,
.jb360-pattern-cta > .wp-block-group {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* Les colonnes doivent exploiter leur largeur disponible. */

.jb360-pattern-hero-impact .wp-block-column,
.jb360-pattern-editorial .wp-block-column {
    min-width: 0;
}

/* Adaptation aux écrans intermédiaires. */

@media (max-width: 1480px) {
    .jb360-pattern-hero-impact > .wp-block-columns,
    .jb360-pattern-editorial > .wp-block-columns {
        max-width: 100%;
    }
}

/* Mobile : retour à une seule colonne. */

@media (max-width: 781px) {
    .jb360-pattern-hero-impact > .wp-block-columns,
    .jb360-pattern-editorial > .wp-block-columns {
        flex-direction: column;
    }
}

/* =====================================================
   JB360 V1.6.7D — RESPONSIVE GUTTERS
   ===================================================== */

/*
 * Fonds pleine largeur.
 * Contenu intérieur limité à 1440 px.
 * Marges de sécurité sur toutes les tailles d'écran.
 */

.jb360-pattern-hero-impact,
.jb360-pattern-editorial,
.jb360-pattern-services,
.jb360-pattern-cta {
    box-sizing: border-box;
    padding-left: max(40px, calc((100% - 1440px) / 2)) !important;
    padding-right: max(40px, calc((100% - 1440px) / 2)) !important;
}

/* Tablettes */

@media (max-width: 1024px) {
    .jb360-pattern-hero-impact,
    .jb360-pattern-editorial,
    .jb360-pattern-services,
    .jb360-pattern-cta {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }
}

/* Mobiles */

@media (max-width: 600px) {
    .jb360-pattern-hero-impact,
    .jb360-pattern-editorial,
    .jb360-pattern-services,
    .jb360-pattern-cta {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ==================================================
   JB360 V1.6.8 — TESTIMONIALS
   ================================================== */

.jb360-testimonials-section {
    box-sizing: border-box;
    padding: clamp(64px, 7vw, 110px) 40px;
    background: var(--wp--preset--color--background, #f8fafc);
}

.jb360-testimonials-section > .wp-block-group,
.jb360-testimonials-section > .wp-block-columns {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.jb360-testimonials-heading {
    max-width: 800px !important;
    margin: 0 auto 48px;
    text-align: center;
}

.jb360-testimonials-eyebrow {
    color: var(--wp--preset--color--accent, #2563eb);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.jb360-testimonials-columns {
    align-items: stretch !important;
    gap: 24px;
}

.jb360-testimonials-columns > .wp-block-column {
    display: flex;
    min-width: 0;
}

.jb360-testimonial-card,
.jb360-testimonial-single {
    box-sizing: border-box;
    width: 100%;
    padding: clamp(28px, 3vw, 42px);
    border-radius: var(--wp--custom--radius--large, 20px);
    background: var(--wp--preset--color--surface, #fff);
    box-shadow: var(--wp--custom--shadow--soft, 0 8px 30px rgba(15,23,42,.08));
    border: 1px solid rgba(100,116,139,.12);
}

.jb360-testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.jb360-testimonial-stars {
    margin: 0 0 20px !important;
    color: #e5a500;
    font-size: 1.25rem;
    letter-spacing: .12em;
    line-height: 1.4;
}

.jb360-testimonial-quote {
    margin: 0 0 28px !important;
    color: var(--wp--preset--color--foreground, #0f172a);
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    line-height: 1.8;
}

.jb360-testimonial-card .jb360-testimonial-quote {
    flex-grow: 1;
}

.jb360-testimonial-author {
    margin: 0 !important;
    color: var(--wp--preset--color--primary, #1e293b);
    font-weight: 700;
}

.jb360-testimonial-company {
    margin: 4px 0 0 !important;
    color: var(--wp--preset--color--muted, #64748b);
    font-size: .875rem;
}

@media (max-width: 1024px) {
    .jb360-testimonials-section {
        padding: 72px 28px;
    }
}

@media (max-width: 781px) {
    .jb360-testimonials-columns {
        flex-direction: column;
    }

    .jb360-testimonials-columns > .wp-block-column {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .jb360-testimonials-section {
        padding: 56px 20px;
    }

    .jb360-testimonial-card,
    .jb360-testimonial-single {
        padding: 28px 24px;
    }
}

/* ==================================================
   JB360 V1.6.9 — GUTENBERG MOTION EXTENSIONS
   ================================================== */

.jb360-motion-ready [data-jb360-reveal="left"] {
    transform: translate3d(-32px, 0, 0);
}

.jb360-motion-ready [data-jb360-reveal="right"] {
    transform: translate3d(32px, 0, 0);
}

/* Keep revealed elements in their natural position. */
.jb360-motion-ready [data-jb360-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* Hover effect after reveal completion. */
@media (hover: hover) and (pointer: fine) {
    .jb360-motion-ready
    [data-jb360-reveal].is-revealed.jb360-hover-lift:hover {
        transform: translateY(-4px);
    }
}

/* Motion accessibility. */
@media (prefers-reduced-motion: reduce) {
    .jb360-motion-ready [data-jb360-reveal],
    .jb360-motion-ready [data-jb360-reveal="left"],
    .jb360-motion-ready [data-jb360-reveal="right"] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .jb360-motion-ready
    [data-jb360-reveal].is-revealed.jb360-hover-lift:hover {
        transform: none;
    }
}

/* ==========================================
   JB360 PEH HEADER LOGO FIX
   ========================================== */

@media (min-width: 782px) {
    header .wp-block-site-logo,
    header .wp-block-site-logo a {
        width: 180px !important;
        max-width: 180px !important;
        flex: 0 0 180px;
    }

    header .wp-block-site-logo img {
        display: block;
        width: 180px !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }
}

@media (max-width: 781px) {
    header .wp-block-site-logo,
    header .wp-block-site-logo a {
        width: 150px !important;
        max-width: 150px !important;
    }

    header .wp-block-site-logo img {
        display: block;
        width: 150px !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }
}


/* ==========================================
   JB360 PEH REVIEWS SHOWCASE
   ========================================== */

.jb360-reviews-showcase {
    background: #003F4B;
    color: #ffffff;
    padding: clamp(64px, 7vw, 110px) max(24px, calc((100vw - 1280px) / 2));
    margin-block: 0;
}

.jb360-reviews-showcase > .jb360-reviews-eyebrow {
    color: #F4B400;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.jb360-reviews-showcase h2 {
    color: #ffffff;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.15;
    max-width: 800px;
    margin-bottom: 18px;
}

.jb360-reviews-showcase .jb360-reviews-disclaimer {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.jb360-reviews-showcase .jb360-reviews-grid {
    gap: 24px;
    align-items: stretch;
}

.jb360-reviews-showcase .jb360-reviews-grid > .wp-block-column {
    display: flex;
}

.jb360-reviews-showcase .jb360-review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 38px 30px 28px;
    background: #ffffff;
    color: #102A2E;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jb360-reviews-showcase .jb360-review-card::before {
    content: "“";
    position: absolute;
    top: 0;
    left: 24px;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: #F4B400;
    opacity: 0.85;
}

.jb360-reviews-showcase .jb360-review-card > p:first-child {
    position: relative;
    padding-top: 34px;
    font-size: 1.03rem;
    line-height: 1.75;
}

.jb360-reviews-showcase .jb360-review-card > p:last-child {
    padding-top: 20px;
    margin-top: auto;
    border-top: 1px solid #E5EBE8;
    font-size: 0.95rem;
}

.jb360-reviews-showcase .jb360-review-card strong {
    color: #003F4B;
}

.jb360-reviews-showcase .jb360-review-card small {
    display: inline-block;
    margin-top: 6px;
    color: #687C80;
    font-size: 0.78rem;
}

@media (hover: hover) {
    .jb360-reviews-showcase .jb360-review-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
    }
}

@media (max-width: 781px) {
    .jb360-reviews-showcase {
        padding: 64px 22px;
    }

    .jb360-reviews-showcase .jb360-reviews-grid {
        gap: 18px;
    }

    .jb360-reviews-showcase .jb360-review-card {
        padding: 34px 25px 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jb360-reviews-showcase .jb360-review-card {
        transition: none;
    }
}

/* END JB360 PEH REVIEWS SHOWCASE */


/* ==========================================
   JB360 PEH REVIEWS WIDE FIX
   ========================================== */

.jb360-reviews-showcase {
    box-sizing: border-box;
    max-width: none !important;
    width: 100%;
}

.jb360-reviews-showcase > .jb360-reviews-grid,
.jb360-reviews-showcase > .wp-block-columns {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 28px;
}

.jb360-reviews-showcase > .jb360-reviews-grid > .wp-block-column {
    min-width: 0;
    flex: 1 1 0;
}

@media (max-width: 781px) {
    .jb360-reviews-showcase > .jb360-reviews-grid {
        max-width: 100% !important;
        gap: 20px;
    }
}

/* END JB360 PEH REVIEWS WIDE FIX */


/* ==========================================
   JB360 PEH EXPERTISE PHOTOS
   ========================================== */

.jb360-expertise-card {
    overflow: hidden;
}

.jb360-expertise-card .jb360-expertise-photo {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    background: #eaf1ee;
}

.jb360-expertise-card .jb360-expertise-photo img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    transition: transform 0.4s ease;
}

@media (hover: hover) {
    .jb360-expertise-card:hover .jb360-expertise-photo img {
        transform: scale(1.045);
    }
}

@media (max-width: 781px) {
    .jb360-expertise-card .jb360-expertise-photo {
        margin-bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jb360-expertise-card .jb360-expertise-photo img {
        transition: none;
    }
}

/* END JB360 PEH EXPERTISE PHOTOS */

