/* STAX Échafaudages – styles complémentaires */
html { scroll-behavior: smooth; }
:where(section[id]) { scroll-margin-top: 90px; }

/* En-tête collant */
.stax-header { position: sticky; top: 0; z-index: 50; border-bottom: 4px solid var(--wp--preset--color--orange); }
.admin-bar .stax-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .stax-header { top: 46px; } }
.stax-header .wp-block-navigation a { text-transform: uppercase; font-weight: 600; letter-spacing: .05em; font-size: .85rem; text-decoration: none; }
.stax-header .wp-block-navigation a:hover { color: var(--wp--preset--color--orange); }
.stax-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--noir) !important; color: #fff !important; }
.stax-logo img { display: block; height: 64px !important; width: auto !important; }
@media (max-width: 600px) { .stax-logo img { height: 46px !important; } }
@media (max-width: 600px) { .stax-header .stax-header-cta { display: none; } }

/* Barres « plateaux » orange façon cadre du logo */
.stax-planks { position: relative; }
.stax-planks::before, .stax-planks::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: var(--wp--preset--color--orange); }
.stax-planks::before { top: 0; }
.stax-planks::after { bottom: 0; }

/* Sur-titre */
.stax-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; font-size: .8rem; color: var(--wp--preset--color--orange); }
.stax-eyebrow::before { content: ""; display: inline-block; width: 28px; height: 4px; background: currentColor; vertical-align: middle; margin-right: .6em; transform: skewX(-20deg); }

/* Bouton contour */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border: 2px solid #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--noir); }
.stax-on-light .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--noir); border-color: var(--wp--preset--color--noir); }
.stax-on-light .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--noir); color: #fff; }
.stax-btn-dark .wp-block-button__link { background: var(--wp--preset--color--noir) !important; color: #fff !important; }
.stax-btn-dark .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--noir) !important; }

/* Hero */
.stax-hero h1 { color: #fff; }
.stax-hero h1 .stax-x { color: var(--wp--preset--color--orange); }
.stax-hero .stax-hero-img img { width: 100%; height: auto; display: block; }

/* Bandeau slogan */
.stax-band p { margin: 0; font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }

/* Cartes services */
.stax-card { background: #fff; border-top: 6px solid var(--wp--preset--color--orange); height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.stax-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.stax-num { font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--wp--preset--color--orange); margin: 0; }
.stax-card h3 { margin-top: .6rem; }
.wp-block-columns.stax-grid > .wp-block-column { display: flex; flex-direction: column; }

/* Atouts (fond noir) */
.stax-feature { border-left: 4px solid var(--wp--preset--color--orange); padding-left: 1.25rem; }
.stax-feature h3 { color: #fff; }
.stax-feature p { color: #c9c9c9; }

/* Étapes */
.stax-step { position: relative; }
.stax-step .stax-num { font-size: 3.4rem; color: transparent; -webkit-text-stroke: 2px var(--wp--preset--color--orange); }

/* Réalisations */
.stax-real .wp-block-image { margin: 0; overflow: hidden; }
.stax-real .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .35s ease; }
.stax-real .wp-block-image:hover img { transform: scale(1.04); }
.stax-real figcaption { text-align: left; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-top: .75rem; }

/* Contact */
.stax-contact-line { display: flex; gap: .9rem; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: .9rem; margin: 0; }
.stax-contact-line strong { color: var(--wp--preset--color--orange); text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; min-width: 7.5rem; }
.stax-contact-line a { color: #fff; text-decoration: none; }
.stax-contact-line a:hover { color: var(--wp--preset--color--orange); }

/* Pied de page */
.stax-footer a { color: #c9c9c9; text-decoration: none; }
.stax-footer a:hover { color: var(--wp--preset--color--orange); }

/* Ajustements de mise en page */
.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0; }
main > .wp-block-group, main > section { margin-block-start: 0; }
section > .wp-block-columns.alignwide { margin-top: var(--wp--preset--spacing--50) !important; }
.stax-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; max-width: 34em; }
.stax-card h3, .stax-feature h3, .stax-step h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.stax-tag { display: inline-block; border: 2px solid var(--wp--preset--color--orange); color: var(--wp--preset--color--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; padding: .45rem .9rem; transform: skewX(-8deg); }
.stax-band p { font-size: clamp(.85rem, 1.6vw, 1.05rem); }
