/* =========================================================================
   SOFAMEL Industrie — feuille de styles principale
   Identité : bleu nuit #0A1220 (structure) · jaune #F5AD0E (accents, actions)
   Typographie : Barlow Condensed (titres, valeurs techniques) · IBM Plex Sans (texte)
   Motif signature : la plaque signalétique (caractéristiques assignées d'un appareil).
   ========================================================================= */

:root {
	--nuit: #0A1220;
	--acier: #1C2A3F;
	--acier-2: #2A3B55;
	--ambre: #F5AD0E;
	--ambre-fonce: #C98A00;
	--ambre-pale: #FEF4DC;
	--signal: #245E9E;
	--ciment: #EDF0F3;
	--ligne: #D5DBE2;
	--graphite: #27303D;
	--gris: #5B6676;
	--gris-clair: #B9C3CF;
	--blanc: #FFFFFF;
	--succes: #1E7A46;
	--erreur: #B3261E;

	--f-titre: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--f-texte: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 3vw, 32px);
	--radius: 3px;
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--blanc); color: var(--graphite); font: 400 1rem/1.65 var(--f-texte); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--signal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--nuit); }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--nuit); margin: 0 0 .5em; }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 700; line-height: 1.05; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 2.2vw + 1.6rem, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.2vw + 1.3rem, 2.5rem); }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font: 600 1.05rem/1.4 var(--f-texte); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
table { border-collapse: collapse; width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sf-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ambre); color: var(--nuit); padding: .6rem 1rem; font-weight: 600; }
.sf-skip:focus { top: 12px; }
.sf-main:focus { outline: none; }

.sf-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sf-wrap--narrow { max-width: calc(820px + 2 * var(--gutter)); }

.sf-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }

/* ---------- Boutons ---------- */
.sf-btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .7rem 1.2rem; border: 2px solid transparent; border-radius: var(--radius); font: 600 .97rem/1.2 var(--f-texte); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.sf-btn--primary, .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--ambre); color: var(--nuit); border-color: var(--ambre); }
.sf-btn--primary:hover, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #FFC233; border-color: #FFC233; color: var(--nuit); }
.sf-btn--ghost, .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--nuit); border-color: var(--nuit); }
.sf-btn--ghost:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--nuit); color: var(--blanc); }
.sf-btn--secondary { background: var(--nuit); color: var(--blanc); border-color: var(--nuit); }
.sf-btn--secondary:hover { background: var(--acier); border-color: var(--acier); color: var(--blanc); }
.sf-btn--outline-light { background: transparent; color: var(--blanc); border-color: rgba(255, 255, 255, .55); }
.sf-btn--outline-light:hover { border-color: var(--blanc); color: var(--nuit); background: var(--blanc); }
.sf-btn--lg { min-height: 54px; padding: .9rem 1.5rem; font-size: 1.02rem; }
.sf-btn--download { display: inline-grid; grid-template-columns: auto auto; column-gap: .55rem; row-gap: .1rem; justify-content: start; align-items: center; text-align: left; }
.sf-btn--download small { grid-column: 2; font-weight: 400; font-size: .8rem; color: var(--gris); }
.sf-btn--download:hover small { color: var(--gris-clair); }

/* ---------- En-tête ---------- */
.sf-header { position: sticky; top: 0; z-index: 100; }
.admin-bar .sf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sf-header { top: 0; } }
.sf-topbar { background: var(--acier); color: #C7D0DC; font-size: .84rem; }
.sf-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; }
.sf-topbar__claim { margin: 0; }
.sf-topbar__links { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.sf-topbar a { color: #C7D0DC; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.sf-topbar a:hover { color: var(--blanc); }
.sf-topbar .sf-icon { width: 1rem; height: 1rem; color: var(--ambre); }
.sf-mainbar { background: var(--nuit); border-bottom: 1px solid var(--acier-2); }
.sf-mainbar__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.sf-logo, .custom-logo-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--blanc); text-decoration: none; flex: none; }
.custom-logo { max-height: 52px; width: auto; }
.sf-logo__mark { width: 12px; height: 34px; background: var(--ambre); box-shadow: 18px 0 0 -4px var(--ambre); margin-right: 14px; }
.sf-logo__text { font: 700 1.9rem/1 var(--f-titre); letter-spacing: .06em; }
.sf-logo:hover { color: var(--blanc); }

.sf-nav { flex: 1; display: flex; align-items: center; }
.sf-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.sf-menu > li { position: relative; display: flex; align-items: center; }
.sf-menu > li > a { display: block; padding: 1.55rem .75rem; color: var(--blanc); text-decoration: none; font-weight: 500; font-size: .97rem; border-bottom: 3px solid transparent; }
.sf-menu > li > a:hover, .sf-menu > li.current-menu-item > a, .sf-menu > li.current-menu-ancestor > a, .sf-menu > li.current-menu-parent > a { border-bottom-color: var(--ambre); color: var(--blanc); }
.sf-subnav-toggle { display: none; background: none; border: 0; color: var(--blanc); padding: .5rem; cursor: pointer; }
.sf-subnav-toggle .sf-icon--chevron { transform: rotate(90deg); transition: transform .15s; }
.sf-menu .sub-menu { list-style: none; margin: 0; padding: .5rem 0; }
@media (min-width: 1101px) {
	.sf-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--blanc); border-top: 3px solid var(--ambre); box-shadow: 0 18px 40px rgba(10, 18, 32, .18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
	.sf-menu > li:hover > .sub-menu, .sf-menu > li:focus-within > .sub-menu, .sf-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.sf-menu .sub-menu a { display: flex; align-items: center; gap: .7rem; padding: .55rem 1.1rem; color: var(--graphite); text-decoration: none; font-size: .95rem; }
	.sf-menu .sub-menu a:hover { background: var(--ciment); color: var(--nuit); }
	.sf-menu .sub-menu .sf-icon { width: 1.5rem; height: 1.5rem; color: var(--nuit); }
	/* Menu « Produits » en grand panneau */
	.sf-menu > li.sf-mega { position: static; }
	.sf-menu > li.sf-mega > .sub-menu { left: 50%; transform: translate(-50%, 6px); width: min(1180px, calc(100vw - 32px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 1rem; }
	.sf-menu > li.sf-mega:hover > .sub-menu, .sf-menu > li.sf-mega:focus-within > .sub-menu, .sf-menu > li.sf-mega.is-open > .sub-menu { transform: translate(-50%, 0); }
	.sf-menu > li.sf-mega > .sub-menu > li > a { font-weight: 600; color: var(--nuit); padding: .8rem 1rem; border-radius: var(--radius); }
	.sf-menu > li.sf-mega > .sub-menu > li > a:hover { background: var(--ciment); }
	.sf-menu > li.sf-mega > .sub-menu > li > a:hover .sf-icon { color: var(--ambre-fonce); }
	.sf-menu > li.sf-mega > .sub-menu .sub-menu { display: none; }
	.sf-menu > li.sf-mega > .sub-menu > li.sf-mega-all { grid-column: 1 / -1; border-top: 1px solid var(--ligne); margin-top: .5rem; padding-top: .5rem; }
}
.sf-mainbar__tools { display: flex; align-items: center; gap: .9rem; flex: none; }
.sf-search { display: flex; align-items: stretch; }
.sf-search input { min-width: 0; height: 42px; padding: 0 .9rem; border: 1px solid var(--acier-2); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--acier); color: var(--blanc); font: 400 .92rem var(--f-texte); }
.sf-search input::placeholder { color: #93A0B2; }
.sf-search button { width: 44px; border: 1px solid var(--acier-2); border-radius: 0 var(--radius) var(--radius) 0; background: var(--acier); color: var(--ambre); cursor: pointer; display: grid; place-items: center; }
.sf-search--desktop input { width: 190px; transition: width .2s; }
.sf-search--desktop input:focus { width: 250px; }
.sf-search--mobile { display: none; }
.sf-search--page { margin-top: 1.5rem; max-width: 640px; }
.sf-search--page input { flex: 1; height: 54px; background: var(--blanc); color: var(--graphite); border-color: var(--gris-clair); font-size: 1rem; }
.sf-search--page button { width: auto; padding: 0 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; color: var(--nuit); background: var(--ambre); border-color: var(--ambre); }
.sf-burger { display: none; background: none; border: 0; color: var(--blanc); padding: .4rem; cursor: pointer; }
.sf-burger .sf-icon { width: 30px; height: 30px; }
.sf-burger .sf-icon--close { display: none; }
.sf-nav__cta-mobile { display: none; }

@media (max-width: 1240px) { .sf-search--desktop { display: none; } }
@media (max-width: 1100px) {
	.sf-burger { display: inline-flex; }
	.sf-header__cta { display: none; }
	.sf-nav { position: fixed; inset: calc(var(--header-h) + 36px) 0 0 0; background: var(--nuit); display: none; flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 2rem; overflow-y: auto; }
	.admin-bar .sf-nav { top: calc(var(--header-h) + 36px + 46px); }
	.sf-nav.is-open { display: flex; }
	body.sf-nav-open { overflow: hidden; }
	.sf-burger[aria-expanded="true"] .sf-icon--open { display: none; }
	.sf-burger[aria-expanded="true"] .sf-icon--close { display: block; }
	.sf-search--mobile { display: flex; margin-bottom: 1rem; }
	.sf-search--mobile input { flex: 1; height: 48px; }
	.sf-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.sf-menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--acier-2); }
	.sf-menu > li > a { flex: 1; padding: 1rem 0; border: 0; font-size: 1.05rem; }
	.sf-subnav-toggle { display: inline-flex; }
	.sf-menu > li.is-open > .sf-subnav-toggle .sf-icon--chevron { transform: rotate(-90deg); }
	.sf-menu .sub-menu { display: none; flex-basis: 100%; padding: 0 0 .8rem; }
	.sf-menu > li.is-open > .sub-menu { display: block; }
	.sf-menu .sub-menu a { display: flex; align-items: center; gap: .7rem; padding: .55rem 0 .55rem .5rem; color: #C7D0DC; text-decoration: none; }
	.sf-menu .sub-menu .sf-icon { color: var(--ambre); width: 1.35rem; height: 1.35rem; }
	.sf-menu .sub-menu .sub-menu { display: none; }
	.sf-nav__cta-mobile { display: inline-flex; margin-top: 1.5rem; }
}
@media (max-width: 720px) {
	.sf-topbar__claim, .sf-hide-sm { display: none; }
	.sf-topbar__inner { justify-content: flex-end; }
	.sf-topbar:not(.sf-topbar--phone) { display: none; }
	.sf-logo__text { font-size: 1.6rem; }
}

/* ---------- Fil d'Ariane ---------- */
.sf-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: 1.1rem 0; font-size: .85rem; color: var(--gris); }
.sf-breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--gris-clair); }
.sf-breadcrumb a { color: var(--gris); text-decoration: none; }
.sf-breadcrumb a:hover { color: var(--nuit); text-decoration: underline; }
.sf-cat-hero .sf-breadcrumb ol, .sf-page-hero .sf-breadcrumb ol { padding-top: 0; }
.sf-cat-hero .sf-breadcrumb, .sf-cat-hero .sf-breadcrumb a { color: #AEB9C7; }
.sf-cat-hero .sf-breadcrumb a:hover { color: var(--blanc); }

/* ---------- Sections ---------- */
.sf-section { padding: clamp(48px, 6vw, 88px) 0; }
.sf-section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.sf-section--ciment { background: var(--ciment); }
.sf-section--nuit { background: var(--nuit); color: #C7D0DC; }
.sf-section--nuit h2, .sf-section--nuit h3 { color: var(--blanc); }
.sf-section__title { margin-bottom: 1.5rem; }
.sf-section__title--sm { font-size: 1.6rem; }
.sf-section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.sf-section__head p { max-width: 60ch; margin: 0; color: var(--gris); }
.sf-empty { padding: 1.5rem; background: var(--ciment); border-left: 4px solid var(--ambre); }

/* ---------- Plaque signalétique (motif signature) ---------- */
.sf-plate { position: relative; margin: 1.6rem 0; padding: 1.1rem 1.4rem; background: var(--nuit); color: var(--blanc); border: 1px solid var(--acier-2); border-radius: 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .2rem 1.6rem; }
.sf-plate::before, .sf-plate::after { content: ""; position: absolute; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--acier-2); box-shadow: 0 calc(100% + 0px) 0 var(--acier-2); }
.sf-plate::before { left: 9px; }
.sf-plate::after { right: 9px; }
.sf-plate__row { padding: .45rem 0; border-bottom: 1px solid var(--acier-2); }
.sf-plate dt { font-size: .78rem; color: #93A0B2; }
.sf-plate dd { margin: 0; font: 700 1.55rem/1.1 var(--f-titre); color: var(--blanc); font-variant-numeric: tabular-nums; }
.sf-plate__row:first-child dd { color: var(--ambre); }

/* ---------- Grille des familles (rail modulaire) ---------- */
.sf-cat-grid { display: grid; gap: 0; border-left: 1px solid var(--ligne); border-top: 4px solid var(--ambre); }
.sf-cat-grid > * { border-right: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); background: var(--blanc); }
.sf-cat-grid--lg { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sf-cat-grid--sm { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); border-top: 1px solid var(--ligne); }
.sf-cat-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 1rem; padding: 1.4rem 1.3rem; background: var(--blanc); color: var(--graphite); text-decoration: none; min-height: 100%; }
.sf-cat-card--lg { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; padding: 1.6rem 1.5rem 1.5rem; min-height: 190px; }
.sf-cat-card--lg .sf-cat-card__icon { grid-column: 1; }
.sf-cat-card--lg .sf-cat-card__arrow { grid-column: 2; grid-row: 1; }
.sf-cat-card--lg .sf-cat-card__body { grid-column: 1 / -1; }
.sf-cat-card__icon { display: grid; place-items: center; width: 52px; height: 52px; color: var(--nuit); }
.sf-cat-card__icon .sf-icon { width: 44px; height: 44px; }
.sf-cat-card--sm .sf-cat-card__icon { width: 36px; height: 36px; }
.sf-cat-card--sm .sf-cat-card__icon .sf-icon { width: 30px; height: 30px; }
.sf-cat-card__body { display: flex; flex-direction: column; gap: .35rem; }
.sf-cat-card__brand { font-size: .78rem; font-weight: 600; color: var(--signal); }
.sf-cat-card__title { font: 600 1.38rem/1.1 var(--f-titre); color: var(--nuit); }
.sf-cat-card--sm .sf-cat-card__title { font-size: 1.18rem; }
.sf-cat-card__text { font-size: .9rem; color: var(--gris); line-height: 1.5; }
.sf-cat-card__arrow { color: var(--gris-clair); }
.sf-cat-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ambre); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.sf-cat-card:hover::after, .sf-cat-card:focus-visible::after { transform: scaleX(1); }
.sf-cat-card:hover .sf-cat-card__arrow { color: var(--nuit); }

/* ---------- Cartes produits ---------- */
.sf-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.sf-product-card { display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 4px; overflow: hidden; transition: border-color .15s; }
.sf-product-card:hover { border-color: var(--nuit); }
.sf-product-card__media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--blanc); border-bottom: 1px solid var(--ligne); padding: 1rem; }
.sf-product-card__img { width: 100%; height: 100%; object-fit: contain; }
.sf-product-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ciment); color: var(--gris-clair); }
.sf-product-card__placeholder .sf-icon { width: 64px; height: 64px; }
.sf-product-card__body { padding: 1rem 1.1rem .6rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.sf-product-card__brand { font-size: .78rem; font-weight: 600; color: var(--signal); }
.sf-product-card__title { margin: 0; font: 600 1.18rem/1.15 var(--f-titre); }
.sf-product-card__title a { color: var(--nuit); text-decoration: none; }
.sf-product-card__title a:hover { text-decoration: underline; }
.sf-product-card__ref { font-size: .82rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.sf-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.sf-chip { display: inline-block; padding: .1rem .45rem; border: 1px solid var(--ligne); border-radius: 2px; font-size: .78rem; color: var(--graphite); background: var(--ciment); font-variant-numeric: tabular-nums; }
.sf-product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 1.1rem; border-top: 1px solid var(--ligne); font-size: .85rem; }
.sf-product-card__doc { display: inline-flex; align-items: center; gap: .35rem; color: var(--gris); white-space: nowrap; }
.sf-product-card__more { white-space: nowrap; }
.sf-product-card__doc .sf-icon { width: 1rem; height: 1rem; color: var(--ambre-fonce); }
.sf-product-card__more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--nuit); text-decoration: none; }
.sf-product-card__more .sf-icon { width: 1rem; height: 1rem; }

/* ---------- Pages de catégories ---------- */
.sf-cat-hero { background: var(--nuit); color: #C7D0DC; padding: 1.2rem 0 clamp(36px, 5vw, 64px); }
.sf-cat-hero__grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.sf-cat-hero__title { color: var(--blanc); max-width: 22ch; margin-bottom: .4em; }
.sf-cat-hero__intro { max-width: 70ch; font-size: 1.05rem; }
.sf-cat-hero__intro p:last-child { margin-bottom: 0; }
.sf-cat-hero__icon { color: var(--ambre); }
.sf-cat-hero__icon .sf-icon { width: 120px; height: 120px; stroke-width: 1; }
.sf-cat-hero__logo { background: var(--blanc); padding: 1rem 1.4rem; border-radius: 4px; }
.sf-cat-hero__link a { color: var(--ambre); }
.sf-cat-hero--black { background: #000; }
.sf-cat-hero--black .sf-cat-hero__title { letter-spacing: .03em; }
@media (max-width: 720px) { .sf-cat-hero__icon { display: none; } .sf-cat-hero__grid { grid-template-columns: 1fr; } }

.sf-listing--filters { display: grid; grid-template-columns: 270px 1fr; gap: 2rem; align-items: start; }
.sf-listing__filters { position: sticky; top: calc(var(--header-h) + 52px); }
.sf-listing__count { color: var(--gris); font-size: .9rem; margin-bottom: 1rem; }
.sf-filters { border: 1px solid var(--ligne); border-radius: 4px; background: var(--blanc); }
.sf-filters__head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border-bottom: 1px solid var(--ligne); }
.sf-filters__title { display: flex; align-items: center; gap: .5rem; margin: 0; font: 600 1.15rem var(--f-titre); }
.sf-filters__reset { font-size: .85rem; }
.sf-facet { border-bottom: 1px solid var(--ligne); }
.sf-facet summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; font-size: .93rem; color: var(--nuit); list-style: none; display: flex; justify-content: space-between; }
.sf-facet summary::-webkit-details-marker { display: none; }
.sf-facet summary::after { content: "+"; color: var(--gris); }
.sf-facet[open] summary::after { content: "–"; }
.sf-facet ul { list-style: none; margin: 0; padding: 0 1rem .8rem; }
.sf-facet label { display: flex; align-items: center; gap: .55rem; padding: .25rem 0; font-size: .92rem; cursor: pointer; }
.sf-facet input { width: 18px; height: 18px; accent-color: var(--nuit); }
.sf-facet em { margin-left: auto; font-style: normal; font-size: .8rem; color: var(--gris); }
.sf-filters__submit { margin: 1rem; width: calc(100% - 2rem); }
.sf-filters-toggle { display: none; width: 100%; }
@media (max-width: 960px) {
	.sf-listing--filters { grid-template-columns: 1fr; }
	.sf-listing__filters { position: static; }
	.sf-filters-toggle { display: inline-flex; }
	.sf-filters-panel { display: none; margin-top: .8rem; }
	.sf-filters-panel.is-open { display: block; }
}
.sf-cat-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 3rem; align-items: start; }
@media (max-width: 960px) { .sf-cat-content { grid-template-columns: 1fr; } }

.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .7rem; border: 1px solid var(--ligne); border-radius: var(--radius); color: var(--nuit); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--nuit); color: var(--blanc); border-color: var(--nuit); }

/* ---------- Fiche produit ---------- */
.sf-product__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
.sf-product__media { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 4px; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 2rem; position: relative; }
.sf-product__img { width: 100%; height: 100%; object-fit: contain; }
.sf-product__placeholder { display: grid; place-items: center; gap: .8rem; color: var(--gris-clair); text-align: center; font-size: .9rem; }
.sf-product__placeholder .sf-icon { width: 120px; height: 120px; stroke-width: 1; }
.sf-product__brand { display: inline-block; font-weight: 600; font-size: .9rem; color: var(--signal); text-decoration: none; margin-bottom: .6rem; }
.sf-product__title { font-size: clamp(2rem, 1.6vw + 1.4rem, 3rem); margin-bottom: .3em; }
.sf-product__ref { color: var(--gris); font-variant-numeric: tabular-nums; }
.sf-product__ref strong { color: var(--nuit); font: 700 1.2rem var(--f-titre); letter-spacing: .02em; margin-left: .2rem; }
.sf-product__lead { font-size: 1.05rem; }
.sf-product__lead p { margin-bottom: .5em; }
.sf-product__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 .9rem; }
.sf-product__contact, .sf-product__external { font-size: .93rem; margin-bottom: .4rem; }
.sf-product__brandnote { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ligne); font-size: .88rem; color: var(--gris); }
.sf-product__tabs { position: sticky; top: calc(var(--header-h) + 36px); z-index: 10; background: var(--blanc); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.admin-bar .sf-product__tabs { top: calc(var(--header-h) + 36px + 32px); }
.sf-product__tabs ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.sf-product__tabs a { display: block; padding: .9rem 1rem; color: var(--graphite); text-decoration: none; font-weight: 500; font-size: .93rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.sf-product__tabs a:hover { border-bottom-color: var(--ambre); color: var(--nuit); }
.sf-product__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(48px, 5vw, 72px); }
.sf-product__main > section { margin-bottom: 3rem; }
.sf-product__main h2 { font-size: 1.85rem; padding-bottom: .4rem; border-bottom: 1px solid var(--ligne); margin-bottom: 1.1rem; }
.sf-product__aside { position: sticky; top: calc(var(--header-h) + 110px); align-self: start; display: flex; flex-direction: column; gap: 1.2rem; }
.sf-aside-card { background: var(--nuit); color: #C7D0DC; padding: 1.4rem; border-radius: 4px; border-left: 4px solid var(--ambre); }
.sf-aside-card h2 { color: var(--blanc); font-size: 1.45rem; }
.sf-aside-card p { font-size: .93rem; }
.sf-aside-links { border: 1px solid var(--ligne); border-radius: 4px; padding: 1.1rem 1.2rem; }
.sf-aside-links h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.sf-aside-links a { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; color: var(--nuit); text-decoration: none; font-size: .93rem; }
.sf-aside-links a:hover { text-decoration: underline; }
.sf-aside-links .sf-icon { color: var(--gris); }
.sf-product__uses { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 960px) {
	.sf-product__head, .sf-product__body, .sf-product__uses { grid-template-columns: 1fr; }
	.sf-product__aside { position: static; }
	.sf-product__media { aspect-ratio: 4 / 3; }
}

.sf-table { font-size: .95rem; }
.sf-table caption { text-align: left; font: 600 1.15rem var(--f-titre); color: var(--nuit); padding: 1rem 0 .4rem; }
.sf-table th, .sf-table td { text-align: left; padding: .6rem .8rem .6rem 0; border-bottom: 1px solid var(--ligne); vertical-align: top; font-variant-numeric: tabular-nums; }
.sf-table--specs th { width: 45%; font-weight: 400; color: var(--gris); }
.sf-table--specs td { font-weight: 500; color: var(--graphite); }
.sf-table--variants thead th { font-size: .82rem; color: var(--gris); font-weight: 600; border-bottom: 2px solid var(--nuit); white-space: nowrap; }
.sf-table--variants tbody th { font-weight: 600; color: var(--nuit); white-space: nowrap; }
.sf-table-scroll { overflow-x: auto; }

/* Documents */
.sf-docs__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ligne); }
.sf-doc { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--ligne); }
.sf-doc__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; background: var(--ambre-pale); color: var(--ambre-fonce); }
.sf-doc__body { display: flex; flex-direction: column; }
.sf-doc__title { font-weight: 600; color: var(--nuit); }
.sf-doc__meta, .sf-doc__desc { font-size: .84rem; color: var(--gris); }
.sf-doc__action { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border: 2px solid var(--nuit); border-radius: var(--radius); color: var(--nuit); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.sf-doc__action:hover { background: var(--nuit); color: var(--blanc); }
.sf-doc__action--request { border-style: dashed; border-color: var(--gris-clair); color: var(--gris); }
.sf-docs__note { font-size: .84rem; color: var(--gris); margin-top: .8rem; }
@media (max-width: 560px) { .sf-doc { grid-template-columns: auto 1fr; } .sf-doc__action { grid-column: 1 / -1; justify-content: center; } }

.sf-list-check { list-style: none; padding: 0; }
.sf-list-check li { position: relative; padding: .35rem 0 .35rem 1.8rem; }
.sf-list-check li::before { content: ""; position: absolute; left: 0; top: .78rem; width: 12px; height: 7px; border-left: 2px solid var(--ambre-fonce); border-bottom: 2px solid var(--ambre-fonce); transform: rotate(-45deg); }

.sf-faq details { border-bottom: 1px solid var(--ligne); }
.sf-faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; color: var(--nuit); list-style: none; position: relative; }
.sf-faq summary::-webkit-details-marker { display: none; }
.sf-faq summary::after { content: "+"; position: absolute; right: .3rem; top: .9rem; font-size: 1.3rem; color: var(--gris); }
.sf-faq details[open] summary::after { content: "–"; }
.sf-faq details p { padding-bottom: 1rem; margin: 0; }

/* ---------- Pages ---------- */
.sf-page-hero { background: var(--ciment); padding: 1rem 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--ligne); }
.sf-page-hero__title { max-width: 24ch; }
.sf-page-hero__intro { max-width: 68ch; font-size: 1.1rem; color: var(--graphite); }
.sf-page-content { padding: clamp(32px, 5vw, 64px) var(--gutter); }
.sf-page-content.sf-wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.sf-page-content--full { padding: 0; }
.sf-prose { max-width: 75ch; }
.sf-page-content--full .sf-prose { max-width: none; }
.sf-prose h2 { margin-top: 1.8em; }
.sf-prose h3 { margin-top: 1.4em; }
.sf-prose > :first-child { margin-top: 0; }
.sf-prose li { margin-bottom: .35em; }
.sf-prose table { margin: 1.2em 0; font-size: .95rem; }
.sf-prose th, .sf-prose td { border-bottom: 1px solid var(--ligne); padding: .55rem .6rem .55rem 0; text-align: left; vertical-align: top; }
.sf-prose thead th { border-bottom: 2px solid var(--nuit); font-size: .88rem; }
.sf-prose blockquote, .sf-note { margin: 1.5em 0; padding: 1rem 1.2rem; border-left: 4px solid var(--ambre); background: var(--ciment); }
.sf-prose figure { margin: 1.5em 0; }
.sf-prose figcaption { font-size: .85rem; color: var(--gris); }
.sf-blocks .alignwide { max-width: var(--wrap); }
.sf-article__cat { display: inline-block; font-weight: 600; font-size: .88rem; margin-bottom: .6rem; text-decoration: none; }
.sf-article__meta { color: var(--gris); font-size: .9rem; }
.sf-article__figure { margin-top: 2rem; }
.sf-article__figure img { border-radius: 4px; }
.sf-article .sf-prose { padding-top: 2rem; padding-bottom: 3rem; }
.sf-article__nav .nav-links { justify-content: space-between; border-top: 1px solid var(--ligne); padding: 1.5rem 0 3rem; }
.sf-article__nav a { text-decoration: none; display: flex; flex-direction: column; color: var(--nuit); font-weight: 600; max-width: 36ch; }
.sf-article__nav a span { font-weight: 400; font-size: .85rem; color: var(--gris); }
.sf-search-list { list-style: none; padding: 0; }
.sf-search-list li { padding: 1rem 0; border-bottom: 1px solid var(--ligne); }
.sf-search-list a { font-weight: 600; font-size: 1.1rem; }

/* ---------- Actualités ---------- */
.sf-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.sf-news-card { display: flex; flex-direction: column; border: 1px solid var(--ligne); border-radius: 4px; overflow: hidden; background: var(--blanc); }
.sf-news-card__media { aspect-ratio: 16 / 9; background: var(--nuit); display: grid; place-items: center; overflow: hidden; }
.sf-news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sf-news-card__placeholder { color: var(--ambre); }
.sf-news-card__placeholder .sf-icon { width: 56px; height: 56px; stroke-width: 1.2; }
.sf-news-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.sf-news-card__cat { font-size: .8rem; font-weight: 600; color: var(--signal); }
.sf-news-card__title { font-size: 1.4rem; margin: 0; }
.sf-news-card__title a { color: var(--nuit); text-decoration: none; }
.sf-news-card__title a:hover { text-decoration: underline; }
.sf-news-card p { font-size: .93rem; margin: 0; flex: 1; }
.sf-news-card time { font-size: .82rem; color: var(--gris); }

/* ---------- Marques ---------- */
.sf-brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
.sf-brand-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem; background: var(--blanc); text-decoration: none; color: var(--graphite); }
.sf-brand-card:hover { background: var(--ciment); }
.sf-brand-card__logo { max-height: 56px; width: auto; object-fit: contain; align-self: flex-start; }
.sf-brand-card__name { font: 700 1.55rem/1 var(--f-titre); color: var(--nuit); }
.sf-brand-card__text { font-size: .88rem; color: var(--gris); }
.sf-badge { display: inline-block; align-self: flex-start; padding: .15rem .55rem; border-radius: 2px; font-size: .76rem; font-weight: 600; background: var(--ciment); color: var(--nuit); border: 1px solid var(--ligne); }
.sf-badge--fabrique { background: var(--ambre); border-color: var(--ambre); color: var(--nuit); }
.sf-badge--exclusif { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.sf-cat-hero .sf-badge { margin-bottom: .8rem; }
.sf-cat-hero .sf-badge--exclusif { border-color: var(--ambre); color: var(--ambre); background: transparent; }

/* ---------- Bibliothèque de documents ---------- */
.sf-library__group { margin-bottom: 2.5rem; }
.sf-library__group h2 { font-size: 1.7rem; }

/* ---------- Coordonnées ---------- */
.sf-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.sf-contact-list li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.sf-contact-list .sf-icon { color: var(--ambre); margin-top: .2rem; }
.sf-contact-list strong { display: block; font-size: .82rem; font-weight: 600; }

/* ---------- Formulaires ---------- */
.sf-form { max-width: 860px; }
.sf-form__group { border: 1px solid var(--ligne); border-radius: 4px; padding: 1.2rem 1.4rem .6rem; margin: 0 0 1.4rem; }
.sf-form__group legend { padding: 0 .4rem; font: 600 1.2rem var(--f-titre); color: var(--nuit); }
.sf-form label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .3rem; color: var(--nuit); }
.sf-form abbr { color: var(--erreur); text-decoration: none; }
.sf-form input[type=text], .sf-form input[type=email], .sf-form input[type=tel], .sf-form select, .sf-form textarea { width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--gris-clair); border-radius: var(--radius); font: 400 1rem var(--f-texte); color: var(--graphite); background: var(--blanc); }
.sf-form textarea { min-height: 120px; resize: vertical; }
.sf-form input:focus, .sf-form select:focus, .sf-form textarea:focus { border-color: var(--nuit); outline: 3px solid rgba(245, 173, 14, .45); outline-offset: 0; }
.sf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.sf-span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .sf-grid-2 { grid-template-columns: 1fr; } }
.sf-choices { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: .6rem; }
.sf-choice { display: inline-flex !important; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 1px solid var(--ligne); border-radius: var(--radius); cursor: pointer; font-weight: 500 !important; }
.sf-choice:has(input:checked) { border-color: var(--nuit); background: var(--ciment); }
.sf-choice input { accent-color: var(--nuit); }
.sf-consent label { display: block; position: relative; padding-left: 1.9rem; font-weight: 400; font-size: .88rem; color: var(--graphite); }
.sf-consent input { position: absolute; left: 0; top: .15rem; margin: 0; width: 18px; height: 18px; accent-color: var(--nuit); }
.sf-form__note { font-size: .84rem; color: var(--gris); }
.sf-hp { position: absolute; left: -9999px; }
.sf-alert { padding: 1rem 1.2rem; border-radius: 4px; margin-bottom: 1.4rem; }
.sf-alert--success { background: #E7F4EC; border-left: 4px solid var(--succes); }
.sf-alert--error { background: #FBEAE9; border-left: 4px solid var(--erreur); }
[hidden] { display: none !important; }

/* ---------- Appels à l'action ---------- */
.sf-cta-final { background: var(--nuit); color: #C7D0DC; padding: clamp(40px, 5vw, 72px) 0; border-top: 4px solid var(--ambre); }
.sf-cta-final__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sf-cta-final h2 { color: var(--blanc); }
.sf-cta-final p { max-width: 60ch; margin: 0; }
.sf-cta-final__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.sf-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.6rem 1.8rem; background: var(--nuit); color: #C7D0DC; border-left: 4px solid var(--ambre); border-radius: 4px; margin: 2rem 0; }
.sf-cta-band h2 { color: var(--blanc); font-size: 1.6rem; margin: 0 0 .3rem; }
.sf-cta-band p { margin: 0; }

/* ---------- Pied de page ---------- */
.sf-footer { background: var(--nuit); color: #AEB9C7; font-size: .93rem; }
.sf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-top: 64px; padding-bottom: 48px; }
.sf-footer h2 { font-size: 1.25rem; color: var(--blanc); margin-bottom: 1rem; }
.sf-footer ul { list-style: none; padding: 0; margin: 0; }
.sf-footer__col li { margin-bottom: .5rem; }
.sf-footer a { color: #C7D0DC; text-decoration: none; }
.sf-footer a:hover { color: var(--blanc); text-decoration: underline; }
.sf-footer__brand .sf-logo { margin-bottom: 1.2rem; }
.sf-footer__brand > p { max-width: 42ch; }
.sf-footer__contact .sf-btn { margin: 0 .5rem .6rem 0; }
.sf-footer__bottom { border-top: 1px solid var(--acier-2); }
.sf-footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; font-size: .84rem; }
.sf-footer__bottom p { margin: 0; }
.sf-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
@media (max-width: 960px) { .sf-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sf-footer__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Page d'accueil (classes appliquées aux blocs de la page « Accueil »)
   ========================================================================= */
.sf-home > * { margin-top: 0; margin-bottom: 0; }
.sf-home .sf-wrap { margin-left: auto; margin-right: auto; }

/* 1. Ouverture */
.sf-hero { background: var(--nuit); color: #C7D0DC; padding: clamp(48px, 7vw, 104px) 0 clamp(48px, 6vw, 88px); position: relative; overflow: hidden; }
.sf-hero::after { content: ""; position: absolute; right: -10%; top: 0; bottom: 0; width: 55%; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 47px); pointer-events: none; }
.sf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; z-index: 1; }
.sf-hero h1 { color: var(--blanc); font-size: clamp(2.6rem, 3.4vw + 1.4rem, 4.6rem); line-height: .98; margin-bottom: .35em; max-width: 16ch; }
.sf-hero__lead { font-size: clamp(1.05rem, .4vw + .95rem, 1.22rem); max-width: 54ch; margin-bottom: 2rem; }
.sf-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.sf-hero .sf-plate { margin: 0; padding: 1.6rem 1.8rem 1.2rem; grid-template-columns: 1fr 1fr; background: var(--acier); border-color: var(--acier-2); }
.sf-hero .sf-plate__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .7rem; margin-bottom: .2rem; border-bottom: 2px solid var(--ambre); }
.sf-hero .sf-plate__head strong { font: 700 1.9rem/1 var(--f-titre); color: var(--blanc); letter-spacing: .06em; }
.sf-hero .sf-plate__head span { font-size: .8rem; color: #93A0B2; }
.sf-hero .sf-plate__row--wide { grid-column: 1 / -1; }
.sf-hero .sf-plate dd { font-size: 1.65rem; }
@media (prefers-reduced-motion: no-preference) {
	.sf-hero .sf-plate__row { animation: sf-plate-in .5s both; }
	.sf-hero .sf-plate__row:nth-child(2) { animation-delay: .15s; }
	.sf-hero .sf-plate__row:nth-child(3) { animation-delay: .25s; }
	.sf-hero .sf-plate__row:nth-child(4) { animation-delay: .35s; }
	.sf-hero .sf-plate__row:nth-child(5) { animation-delay: .45s; }
	.sf-hero .sf-plate__row:nth-child(6) { animation-delay: .55s; }
}
@keyframes sf-plate-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .sf-hero__grid { grid-template-columns: 1fr; } .sf-hero::after { display: none; } }

/* 2. Familles */
.sf-home-families { padding: clamp(40px, 5vw, 72px) 0; }
.sf-home-families .sf-section__head h2 { margin: 0; }

/* 3. Entreprise */
.sf-home-company { background: var(--ciment); padding: clamp(48px, 6vw, 88px) 0; }
.sf-home-company__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sf-home-company__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
.sf-home-company__facts > div { background: var(--blanc); padding: 1.3rem 1.4rem; }
.sf-home-company__facts strong { display: block; font: 700 2rem/1 var(--f-titre); color: var(--nuit); margin-bottom: .3rem; }
.sf-home-company__facts span { font-size: .9rem; color: var(--gris); }
@media (max-width: 860px) { .sf-home-company__grid { grid-template-columns: 1fr; } }

/* 4. Expertises */
.sf-home-expertise { padding: clamp(48px, 6vw, 88px) 0; }
.sf-expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem 2.5rem; }
.sf-expertise { border-top: 2px solid var(--nuit); padding-top: 1.2rem; }
.sf-expertise .sf-icon { width: 36px; height: 36px; color: var(--ambre-fonce); margin-bottom: .6rem; }
.sf-expertise h3 { font-size: 1.45rem; }
.sf-expertise p { font-size: .95rem; margin-bottom: .6rem; }

/* 5. Marques */
.sf-home-brands { background: var(--ciment); padding: clamp(48px, 6vw, 88px) 0; }

/* 6. Solutions */
.sf-home-solutions { background: var(--nuit); color: #C7D0DC; padding: clamp(48px, 6vw, 88px) 0; }
.sf-home-solutions h2 { color: var(--blanc); }
.sf-solution-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--acier-2); border: 1px solid var(--acier-2); }
.sf-solution { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; background: var(--nuit); color: #C7D0DC; text-decoration: none; }
.sf-solution:hover { background: var(--acier); color: var(--blanc); }
.sf-solution .sf-icon { width: 34px; height: 34px; color: var(--ambre); }
.sf-solution strong { font: 600 1.35rem/1.1 var(--f-titre); color: var(--blanc); }
.sf-solution span { font-size: .9rem; }

/* 7. Sélection */
.sf-home-selection { padding: clamp(48px, 6vw, 88px) 0; }

/* 8. ALL BLACK */
.sf-allblack { background: #000; color: #BFC6D0; padding: clamp(56px, 7vw, 104px) 0; }
.sf-allblack__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sf-allblack__mark { font: 700 clamp(3.4rem, 6vw + 1rem, 7rem)/.88 var(--f-titre); color: var(--blanc); letter-spacing: .04em; margin: 0 0 .25em; }
.sf-allblack__mark span { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--ambre); }
.sf-allblack h2 { color: var(--blanc); font-size: 1.7rem; }
.sf-allblack ul { padding-left: 0; list-style: none; }
.sf-allblack li { padding: .55rem 0; border-bottom: 1px solid #222; }
.sf-allblack li strong { color: var(--blanc); font-weight: 600; }
@media (max-width: 860px) { .sf-allblack__grid { grid-template-columns: 1fr; } }

/* 9–10. Actualités, documentation */
.sf-home-news { padding: clamp(48px, 6vw, 88px) 0; }
.sf-home-docs { background: var(--ciment); padding: clamp(40px, 5vw, 64px) 0; }
.sf-home-docs__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.sf-home-docs__list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.sf-home-docs__list li { padding: .3rem .7rem; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 2px; font-size: .88rem; }
@media (max-width: 760px) { .sf-home-docs__grid { grid-template-columns: 1fr; } }

/* Gutenberg : neutralise les marges des blocs de mise en page dans la page d'accueil */
.sf-home .wp-block-group { margin: 0; }
.sf-home .wp-block-group.sf-wrap { padding-top: 0; padding-bottom: 0; }

/* Code couleur IEC 60309 (page fiches et prises) */
.sf-iec { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.sf-iec li { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 3px; font-size: .9rem; }
.sf-iec i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.sf-iec strong { display: block; font: 700 1.1rem/1 var(--f-titre); color: var(--nuit); }
.sf-doc__meta { display: flex; flex-wrap: wrap; gap: .1rem .9rem; }

/* Fiche produit : boutons pleine largeur sur mobile */
@media (max-width: 600px) {
	.sf-product__actions .sf-btn { flex: 1 1 100%; justify-content: center; }
}

/* Familles en deux colonnes compactes sur mobile */
@media (max-width: 600px) {
	.sf-cat-grid--lg { grid-template-columns: 1fr 1fr; }
	.sf-cat-grid--lg .sf-cat-card { padding: 1rem; }
	.sf-cat-grid--lg .sf-cat-card__text, .sf-cat-grid--lg .sf-cat-card__arrow { display: none; }
	.sf-cat-grid--lg .sf-cat-card__title { font-size: 1.1rem; }
}

/* =====================================================================
   Pages institutionnelles à sections (page-sections.php)
   ===================================================================== */
.sf-cat-hero__grid--plate { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.sf-plate--hero { margin: 0; grid-template-columns: 1fr 1fr; background: var(--acier); border-color: var(--acier-2); padding: 1.3rem 1.6rem 1rem; }
.sf-plate--hero .sf-plate__row--wide { grid-column: 1 / -1; }
.sf-plate--hero dd { font-size: 1.45rem; }
@media (max-width: 860px) { .sf-cat-hero__grid--plate { grid-template-columns: 1fr; } }

.sf-sections > * { margin-top: 0; margin-bottom: 0; }
.sf-sections .sf-wrap { margin-left: auto; margin-right: auto; }
.sf-sections .sf-section { padding: clamp(44px, 5.5vw, 84px) 0; }
.sf-lead { font-size: clamp(1.1rem, .3vw + 1rem, 1.25rem); line-height: 1.6; color: var(--graphite); max-width: 62ch; }
.sf-muted { color: var(--gris); }

/* Deux colonnes : texte + encadré */
.sf-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.sf-split > div > :last-child { margin-bottom: 0; }
@media (max-width: 860px) { .sf-split { grid-template-columns: 1fr; } }

/* Encadré latéral */
.sf-aside { background: var(--ciment); border-top: 4px solid var(--ambre); padding: 1.5rem 1.6rem; }
.sf-aside h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.sf-aside ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.sf-aside li { margin-bottom: .35rem; }
.sf-aside > :last-child { margin-bottom: 0; }
.sf-section--ciment .sf-aside { background: var(--blanc); }

/* Deux métiers côte à côte */
.sf-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
.sf-duo__item { background: var(--blanc); padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .2rem; }
.sf-duo__item > .sf-icon { width: 44px; height: 44px; color: var(--ambre-fonce); margin-bottom: .8rem; }
.sf-duo__item h3 { font-size: 1.8rem; }
.sf-duo__item p { margin-bottom: 1rem; }
.sf-duo__item .sf-linkpills { margin-top: auto; }
@media (max-width: 760px) { .sf-duo { grid-template-columns: 1fr; } }

/* Liens en pastilles */
.sf-linkpills { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.sf-linkpills a { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .75rem; border: 1px solid var(--ligne); border-radius: 2px; background: var(--blanc); color: var(--nuit); font-size: .9rem; font-weight: 500; text-decoration: none; }
.sf-linkpills a:hover { border-color: var(--nuit); background: var(--nuit); color: var(--blanc); }
.sf-section--nuit .sf-linkpills a { background: transparent; border-color: var(--acier-2); color: #DCE3EC; }
.sf-section--nuit .sf-linkpills a:hover { background: var(--ambre); border-color: var(--ambre); color: var(--nuit); }

/* Démarche : étapes numérotées (contenu réellement séquentiel) */
.sf-process { list-style: none; counter-reset: sf-step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 2px solid var(--nuit); }
.sf-process li { counter-increment: sf-step; padding: 1.4rem 1.4rem 1.2rem 0; position: relative; }
.sf-process li + li { padding-left: 1.4rem; border-left: 1px solid var(--ligne); }
.sf-process li::before { content: counter(sf-step, decimal-leading-zero); display: block; font: 700 2.4rem/1 var(--f-titre); color: var(--ambre-fonce); margin-bottom: .7rem; }
.sf-process strong { display: block; font: 600 1.3rem/1.15 var(--f-titre); color: var(--nuit); margin-bottom: .35rem; }
.sf-process p { margin: 0; font-size: .95rem; }
@media (max-width: 760px) { .sf-process li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--ligne); } }

/* Deux sites */
.sf-sites { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.sf-site { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; padding: 1.5rem; border: 1px solid var(--ligne); background: var(--blanc); }
.sf-site .sf-icon { grid-row: span 3; width: 34px; height: 34px; color: var(--ambre-fonce); }
.sf-site span { font-size: .85rem; color: var(--gris); }
.sf-site strong { font: 700 1.9rem/1 var(--f-titre); color: var(--nuit); }
.sf-site p { margin: .3rem 0 0; font-size: .95rem; }
@media (max-width: 640px) { .sf-sites { grid-template-columns: 1fr; } }

/* Acronyme PEC */
.sf-acronym { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 4px solid var(--ambre); }
.sf-acronym.sf-acronym--light > div + div { border-left-color: var(--ligne); }
.sf-acronym.sf-acronym--light b { color: var(--nuit); }
.sf-acronym.sf-acronym--light span { color: var(--ambre-fonce); }
.sf-acronym.sf-acronym--light p { color: var(--gris); }
.sf-acronym > div { padding: 1.4rem 1.4rem 1.2rem 0; }
.sf-acronym > div + div { padding-left: 1.4rem; border-left: 1px solid var(--acier-2); }
.sf-acronym b { display: block; font: 700 clamp(4rem, 7vw, 6.5rem)/.85 var(--f-titre); color: var(--blanc); }
.sf-acronym span { display: block; margin-top: .5rem; font: 600 1.35rem/1.1 var(--f-titre); color: var(--ambre); }
.sf-acronym p { margin: .5rem 0 0; font-size: .95rem; color: #AEB9C7; }
@media (max-width: 640px) { .sf-acronym { grid-template-columns: 1fr; } .sf-acronym > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--acier-2); } }

/* Navigation interne de page */
.sf-anchor-nav { position: sticky; top: 0; z-index: 5; background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.admin-bar .sf-anchor-nav { top: 32px; }
.sf-anchor-nav ul { display: flex; gap: .2rem 1.6rem; overflow-x: auto; list-style: none; margin: 0; padding: .85rem 0; scrollbar-width: none; }
.sf-anchor-nav a { white-space: nowrap; color: var(--graphite); font-weight: 500; font-size: .95rem; text-decoration: none; }
.sf-anchor-nav a:hover { color: var(--nuit); text-decoration: underline; text-underline-offset: 4px; }

/* Secteurs (page Solutions) */
.sf-sector { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.2rem clamp(32px, 5vw, 80px); padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--ligne); scroll-margin-top: 140px; }
.sf-sector:first-child { border-top: 0; }
.sf-sector__head { display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; align-items: start; }
.sf-sector__head .sf-icon { width: 40px; height: 40px; color: var(--ambre-fonce); margin-top: .2rem; }
.sf-sector__head h2 { font-size: clamp(1.6rem, 1vw + 1.2rem, 2.1rem); margin-bottom: .3rem; }
.sf-sector__head p { grid-column: 2; margin: 0; color: var(--gris); }
.sf-sector__body p { margin-top: 0; }
@media (max-width: 860px) { .sf-sector { grid-template-columns: 1fr; } }

/* Marques : deux familles */
.sf-brand-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.25rem; }
.sf-brand-split h3 { font-size: 1.15rem; text-transform: none; margin-bottom: .8rem; color: var(--gris); font-family: var(--f-texte); font-weight: 600; }
@media (max-width: 860px) { .sf-brand-split { grid-template-columns: 1fr; } }

/* Contact / devis : formulaire + colonne */
.sf-form-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sf-form-layout__side { position: sticky; top: 24px; display: grid; gap: 1.25rem; }
@media (max-width: 960px) { .sf-form-layout { grid-template-columns: 1fr; } .sf-form-layout__side { position: static; order: -1; } }

/* Documentation : accès rapide par marque */
.sf-doc-brands { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.sf-sections .sf-library__group { scroll-margin-top: 110px; }
.sf-section--nuit .sf-lead { color: #C7D0DC; }
.sf-section--nuit .sf-section__head p { color: #AEB9C7; }
.sf-searchbox { display: flex; gap: .5rem; margin-top: 1.2rem; max-width: 560px; }
.sf-searchbox input { flex: 1; min-width: 0; padding: .7rem .9rem; border: 1px solid var(--ligne); border-radius: var(--radius); font: inherit; background: var(--blanc); }
.sf-searchbox input:focus { outline: 2px solid var(--ambre); outline-offset: 1px; border-color: var(--nuit); }
