/* Salvatori TPC — styles du thème (site + éditeur).
   Les couleurs, polices et espacements viennent de theme.json (variables --wp--preset--*). */

:root {
	--sal-green: var(--wp--preset--color--green);
	--sal-green-2: var(--wp--preset--color--green-dark);
	--sal-accent: var(--wp--preset--color--accent);
	--sal-panel: var(--wp--preset--color--panel);
	--sal-line: var(--wp--preset--color--line);
	--sal-muted: var(--wp--preset--color--muted);
	--sal-on-green: var(--wp--preset--color--on-green);
	--sal-r: 20px;
	--sal-r-sm: 12px;
	--sal-header-h: 80px;
	--sal-gutter: clamp(16px, 4vw, 24px);
	--sal-arrow-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23244024' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
	--sal-arrow-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
	--sal-arrow-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2f1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
[id] { scroll-margin-top: calc(var(--sal-header-h) + 24px); }
:focus-visible { outline: 2px solid var(--sal-accent); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block: 0; }

/* ------------------------------------------------------------ Boutons */
.wp-block-button.is-style-arrow .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 8px 8px 8px 22px;
}
.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
	background: #fff var(--sal-arrow-green) center / 15px no-repeat;
	transition: transform .25s;
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover::after { transform: translate(2px, -2px); }
.wp-block-button.is-style-arrow .has-accent-background-color::after { background-color: var(--sal-green-2); background-image: var(--sal-arrow-white); }
.wp-block-button.is-style-arrow .has-white-background-color { border: 1px solid var(--sal-line); }
.wp-block-button.is-style-arrow .has-white-background-color::after { background-color: var(--sal-green); background-image: var(--sal-arrow-white); }
.wp-block-button .has-accent-background-color:hover { background-color: #9bd050 !important; }
.wp-block-button .has-white-background-color:hover { background-color: var(--sal-panel) !important; }

.wp-block-button.is-style-pill .wp-block-button__link {
	background: #fff; color: var(--wp--preset--color--ink); border: 1px solid var(--sal-line);
	padding: 9px 16px; font-size: .92rem;
}
.wp-block-button.is-style-pill .wp-block-button__link:hover { background: var(--sal-panel); border-color: var(--sal-green); }

/* ------------------------------------------------------------ Paragraphes */
p.is-style-chip {
	display: inline-block; padding: 6px 14px; border-radius: 999px;
	background: var(--sal-panel); color: var(--sal-green);
	font-size: .85rem; font-weight: 500; line-height: 1.4; margin-bottom: 4px;
}
.wp-block-cover p.is-style-chip,
.has-green-background-color p.is-style-chip { background: rgba(255,255,255,.14); color: #fff; }
.wp-block-cover .has-white-background-color p.is-style-chip { background: var(--sal-panel); color: var(--sal-green); }
.is-style-panel p.is-style-chip,
.is-style-hero-light p.is-style-chip { background: #fff; }

p.is-style-label { font-size: .95rem; color: var(--sal-muted); }
.has-green-background-color p.is-style-label { color: var(--sal-on-green); }

p.is-style-badge {
	width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
	background: var(--sal-accent); color: var(--sal-green-2); font-size: .85rem; font-weight: 600;
	margin-bottom: 40px;
}
p.is-style-stat { font-size: 1.7rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; color: var(--sal-green); margin: 0; }
p.is-style-stat sup { font-size: .55em; color: var(--sal-accent); margin-left: 2px; }
.is-style-stats p.is-style-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin: 0; }

.sal-textlink a, a.sal-textlink {
	color: var(--sal-green); font-weight: 500; text-decoration: none;
	border-bottom: 1.5px solid var(--sal-accent); padding-bottom: 2px;
}
.sal-textlink a:hover { border-color: currentColor; text-decoration: none; }
.has-green-background-color .sal-textlink a { color: #fff; }
.sal-lead { font-size: clamp(1rem, 1.6vh, 1.15rem); }

/* ------------------------------------------------------------ En-tête */
.sal-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .sal-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.sal-header { padding-block: 0; }
.sal-header__inner { min-height: var(--sal-header-h); gap: 20px; }
.sal-header .wp-block-site-logo img { height: 26px; width: auto; }
.sal-header a { color: inherit; }

.sal-nav .wp-block-navigation__container { background: rgba(255,255,255,.1); border-radius: 999px; padding: 5px; gap: 4px; }
/* WordPress fait hériter le fond de la pilule à chaque lien : on l'annule pour éviter les superpositions. */
.sal-nav .wp-block-navigation-item { background-color: transparent; }
.sal-nav .is-menu-open .wp-block-navigation-item { background-color: transparent; }
.sal-nav .wp-block-navigation-item__content { padding: 9px 18px; border-radius: 999px; transition: background .2s; }
.sal-nav .wp-block-navigation-item__content:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.sal-nav .current-menu-item > .wp-block-navigation-item__content { background: #fff; color: var(--sal-green); }
.sal-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--sal-green); color: #fff; padding: 24px; }
.sal-nav .is-menu-open .wp-block-navigation__container { background: none; padding: 0; gap: 8px; }
.sal-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.3rem; padding: 10px 22px !important; }
.sal-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content { background: var(--sal-accent); color: var(--sal-green-2) !important; }

.sal-header__contact { position: relative; }
.sal-header__contact .wp-block-button__link { padding: 6px 6px 6px 20px; font-size: .95rem; }
.sal-header__contact .wp-block-button__link::after { width: 30px; height: 30px; }
.sal-phones {
	position: absolute; right: 0; top: calc(100% + 10px); width: 270px; padding: 6px;
	background: #fff; color: var(--wp--preset--color--ink); border: 1px solid var(--sal-line);
	border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s;
}
.sal-header__contact:hover .sal-phones,
.sal-header__contact:focus-within .sal-phones { opacity: 1; visibility: visible; transform: none; }
.sal-phones p { margin: 0; padding: 10px 12px; border-radius: 9px; font-weight: 500; line-height: 1.3; }
.sal-phones p:hover { background: var(--sal-panel); }
.sal-phones small { display: block; font-size: .8rem; color: var(--sal-muted); font-weight: 400; }
.sal-phones a { color: var(--wp--preset--color--ink); }
.editor-styles-wrapper .sal-phones { position: static; opacity: 1; visibility: visible; transform: none; width: auto; margin-top: 8px; }

/* ------------------------------------------------------------ Hero */
.sal-hero-wrap { padding: 12px 12px 0; }
.wp-block-cover.is-style-hero {
	border-radius: var(--sal-r); overflow: hidden; padding: 0;
	height: calc(100svh - var(--sal-header-h) - 12px); min-height: 520px; align-items: flex-end;
}
.admin-bar .wp-block-cover.is-style-hero { height: calc(100svh - var(--sal-header-h) - 12px - 32px); }
.is-style-hero .wp-block-cover__inner-container { width: 100% !important; padding: 40px var(--sal-gutter) 0; }
.sal-hero__content h1 { max-width: 15ch; margin-block: clamp(12px, 2vh, 22px); font-size: clamp(2rem, min(5vw, 6.4vh), 4.6rem); }
.sal-hero__content .sal-lead { max-width: 48ch; color: #e6ebe2; margin-bottom: clamp(16px, 3vh, 30px); }

.is-style-stats {
	margin-top: clamp(16px, 4vh, 56px) !important; width: max-content; gap: 0 !important;
	background: #fff; color: var(--wp--preset--color--ink);
	border-radius: var(--sal-r) var(--sal-r) 0 0; padding: clamp(14px, 2.2vh, 22px) 8px clamp(12px, 2vh, 20px);
}
.is-style-stats > .wp-block-group { padding: 0 28px; border-right: 1px solid var(--sal-line); }
.is-style-stats > .wp-block-group:last-child { border-right: 0; }

.wp-block-cover.is-page-hero { height: auto; min-height: clamp(400px, 58vh, 560px); }
.is-page-hero .wp-block-cover__inner-container { padding-bottom: 56px; }
.is-page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); max-width: 17ch; }

.wp-block-cover.is-about-hero { height: auto; min-height: 0; align-items: center; padding: clamp(96px, 14vw, 180px) 24px clamp(40px, 6vw, 80px); }
.is-about-hero .wp-block-cover__inner-container { padding: 0; }
.is-style-about-card { max-width: 820px !important; border-radius: var(--sal-r); padding: clamp(28px, 5vw, 56px); }
.is-style-about-card h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.is-style-about-card .sal-lead { line-height: 1.45; }

.is-style-hero-light { border-radius: var(--sal-r); padding-block: clamp(40px, 6vw, 72px); }

/* Hero de l'accueil : schéma technique sur fond clair, tient dans l'écran */
.is-style-hero-light.sal-home-hero { min-height: max(520px, calc(100svh - var(--sal-header-h) - 12px)); padding-block: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.admin-bar .is-style-hero-light.sal-home-hero { min-height: max(520px, calc(100svh - var(--sal-header-h) - 12px - 32px)); }
.sal-home-hero__cols { margin-block: 0 !important; gap: clamp(24px, 4vw, 56px); height: 100%; align-items: stretch; }
.sal-home-hero__text { align-self: flex-end; padding-top: clamp(24px, 4vh, 48px); }
.sal-home-hero__text > * { margin-block: 0; }
.sal-home-hero .sal-home-hero__text h1.wp-block-heading { max-width: 15ch; margin-block: clamp(12px, 2vh, 22px); font-size: clamp(2rem, min(4.4vw, 5.6vh), 4.2rem); }
.sal-home-hero__text .sal-lead { max-width: 48ch; margin-bottom: clamp(16px, 3vh, 30px); }
.sal-home-hero__text .wp-block-buttons { margin-bottom: 0; }
.sal-home-hero .is-style-stats { border: 1px solid var(--sal-line); border-bottom: 0; }
.sal-home-hero__media { align-self: center; }
.wp-block-image.sal-drawing { margin: 0; text-align: center; }
.wp-block-image.sal-drawing img { width: 100%; height: auto; max-height: calc(100svh - var(--sal-header-h) - 120px); object-fit: contain; mix-blend-mode: multiply; border-radius: 0; }
.is-style-hero-light h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
.sal-tiles { gap: 12px; }
.sal-tiles .wp-block-image { margin: 0; }
.sal-jump-wrap { padding-top: 28px; }
.sal-jump { gap: 8px; }

/* ------------------------------------------------------------ Sections */
.sal-head { margin-bottom: 2.75rem; gap: 32px; }
.sal-head h2 { margin-top: 14px; }
.sal-head__title { flex: 1 1 520px; max-width: 760px; }
.sal-head__title > *:first-child { margin-top: 0; }
.sal-head__aside { max-width: 440px; }
.sal-head__aside p { margin: 0; }

.sal-intro { text-align: center; }
.sal-intro .sal-intro__text {
	max-width: 26ch; margin-top: 18px; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.3;
	letter-spacing: -.02em; color: var(--sal-muted); font-weight: 500;
}
.sal-intro__text strong { color: var(--wp--preset--color--ink); font-weight: 600; }
.sal-intro .sal-intro__small { max-width: 62ch; margin: 0 auto 28px; font-size: 1.1rem; color: var(--sal-muted); }
.sal-intro .sal-intro__small + .sal-intro__text { max-width: none; margin-top: 0; }
.sal-prose-2 { columns: 2; column-gap: 56px; color: var(--sal-muted); margin-bottom: 2rem; }
.sal-prose-2 p { break-inside: avoid; margin: 0 0 1em; }
.sal-prose-2 > * + * { margin-block-start: 0; }

/* Cartes */
.wp-block-columns.sal-cards3, .wp-block-columns.sal-cards4 { display: grid; gap: 20px; }
.wp-block-columns.sal-cards3 { grid-template-columns: 1fr 1.25fr 1fr; }
.wp-block-columns.sal-cards3.is-even { grid-template-columns: repeat(3, 1fr); }
.wp-block-columns.sal-cards4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sal-cards3 > .wp-block-column, .sal-cards4 > .wp-block-column { display: flex; flex-direction: column; }

.is-style-card, .is-style-card-dark {
	flex: 1; display: flex; flex-direction: column; padding: 28px;
	border-radius: var(--sal-r); background: #fff; border: 1px solid var(--sal-line); min-height: 250px;
}
.is-style-card-dark { border-color: var(--sal-green); }
.is-style-card > *, .is-style-card-dark > * { margin-block: 0; }
.is-style-card p.is-style-label, .is-style-card-dark p.is-style-label { margin-bottom: 36px; }
.is-style-card h3, .is-style-card-dark h3 { font-size: 1.45rem; margin-bottom: 8px; }
.is-style-card-dark p { color: var(--sal-on-green); }
.is-style-card-dark .sal-textlink { margin-top: 18px; }
/* Couverture nationale */
.sal-coverage { gap: clamp(32px, 5vw, 64px); }
.sal-coverage h2 { margin-top: 14px; }
.sal-coverage .sal-hours { margin-top: 28px; min-height: 0; }
.sal-coverage .sal-hours p.is-style-label { margin-bottom: 16px; }
.sal-coverage .sal-map-card { min-height: 0; }
.sal-cards3:not(.is-even) .is-style-card { min-height: 340px; }
.sal-cards3:not(.is-even) .is-style-card p.is-style-label { margin-bottom: auto; }
.sal-cards3:not(.is-even) .is-style-card h3 { margin-top: 28px; }
.sal-map { margin: 6px 0 0 !important; text-align: center; }
.sal-map img { max-height: 250px; width: auto !important; margin: 0 auto; border-radius: 0 !important; }

/* Cartes photo (domaines) */
.wp-block-cover.is-style-photo-card, .wp-block-cover.is-style-photo-card-plain {
	aspect-ratio: 3 / 4; min-height: 0 !important; height: auto; border-radius: var(--sal-r);
	padding: 26px; align-items: flex-end; overflow: hidden;
}
.is-style-photo-card .wp-block-cover__image-background { transition: transform .6s ease; }
.is-style-photo-card:hover .wp-block-cover__image-background { transform: scale(1.04); }
.is-style-photo-card .wp-block-cover__inner-container,
.is-style-photo-card-plain .wp-block-cover__inner-container { position: static; padding: 0; }
.is-style-photo-card .wp-block-cover__inner-container > *,
.is-style-photo-card-plain .wp-block-cover__inner-container > * { position: relative; z-index: 2; max-width: none; }
.is-style-photo-card h3, .is-style-photo-card-plain h3 { font-size: 1.6rem; margin: 0 0 6px; }
.is-style-photo-card h3 a, .is-style-photo-card-plain h3 a { color: inherit; text-decoration: none; }
.is-style-photo-card h3 a::after, .is-style-photo-card-plain h3 a::after { content: ""; position: absolute; inset: -2000px; z-index: 3; }
.is-style-photo-card p { font-size: .92rem; color: #dfe6da; margin: 0; }
.sal-cards4.is-long .is-style-photo-card p { font-size: .86rem; line-height: 1.45; }
.wp-block-cover.is-style-photo-card::after, .wp-block-cover.is-style-photo-card-plain::after {
	content: ""; position: absolute; top: 18px; right: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255,255,255,.18) var(--sal-arrow-white) center / 16px no-repeat; backdrop-filter: blur(6px); transition: background-color .2s;
}
.is-style-photo-card:hover::after { background-color: var(--sal-accent); background-image: var(--sal-arrow-dark); }
.wp-block-cover.is-style-photo-card-plain { background: var(--sal-panel); color: var(--wp--preset--color--ink); }
.is-style-photo-card-plain .wp-block-cover__image-background { object-fit: contain; padding: 16% 18% 42%; mix-blend-mode: multiply; }
.is-style-photo-card-plain p { color: var(--sal-muted); font-size: .92rem; margin: 0; }
.wp-block-cover.is-style-photo-card-plain::after { background-color: var(--sal-green); }
.is-style-photo-card, .is-style-photo-card-plain { overflow: hidden; }
.is-style-photo-card:has(h3 a), .is-style-photo-card-plain:has(h3 a) { cursor: pointer; }

/* Panneaux texte + image */
.is-style-panel, .is-style-panel-dark { background: var(--sal-panel); border-radius: var(--sal-r); padding: 36px; }
.is-style-panel-dark { background: var(--sal-green); color: #fff; }
.is-style-panel + .is-style-panel, .is-style-panel + .is-style-panel-dark,
.is-style-panel-dark + .is-style-panel, .is-style-panel-dark + .is-style-panel-dark { margin-top: 20px; }
.is-style-panel > .wp-block-columns, .is-style-panel-dark > .wp-block-columns { gap: 48px; margin: 0; }
.is-style-panel h3, .is-style-panel-dark h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 0 0 14px; }
.is-style-panel p { color: var(--sal-muted); }
.is-style-panel p + p, .is-style-panel-dark p + p { margin-top: 12px; }
.is-style-panel-dark p { color: var(--sal-on-green); }
.is-style-panel-dark .sal-textlink a { color: #fff; }
.is-style-panel p.is-style-chip, .is-style-panel-dark p.is-style-chip { margin-bottom: 32px; }
.sal-panel__img { margin: 0; }
.sal-panel__img img { width: 100%; border-radius: var(--sal-r-sm); }

ul.is-style-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 28px; }
ul.is-style-pills li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--sal-line); font-size: .9rem; color: var(--wp--preset--color--ink); }
.is-style-panel-dark ul.is-style-pills li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }

ol.is-style-checklist { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; counter-reset: sal; }
ol.is-style-checklist li { counter-increment: sal; display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--sal-line); border-radius: var(--sal-r-sm); padding: 12px 14px; font-size: .95rem; }
ol.is-style-checklist li::before { content: counter(sal); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sal-panel); color: var(--sal-green); display: grid; place-items: center; font-size: .8rem; font-weight: 600; }

/* Images produit et photo de carte */
.wp-block-image.is-style-product { background: #fff; border-radius: var(--sal-r-sm); display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; margin: 0; }
.wp-block-image.is-style-product img { width: auto !important; max-width: 72%; max-height: 78%; object-fit: contain; mix-blend-mode: multiply; border-radius: 0; }
.sal-tiles .wp-block-image.is-style-product { aspect-ratio: 1; }
.wp-block-image.is-style-photo { margin: 0; overflow: hidden; border-radius: var(--sal-r-sm); }
.wp-block-image.is-style-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ Carrousels */
.sal-carousel { overflow: hidden; }
.sal-carousel.has-white-background-color { border-block: 1px solid var(--sal-line); }
.is-style-track.wp-block-group {
	--g: max(var(--sal-gutter), calc((100vw - 1240px) / 2));
	display: flex; flex-wrap: nowrap; align-items: stretch; gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding: 4px var(--g) 12px; scroll-padding-inline: var(--g);
	margin-inline: calc(var(--sal-gutter) * -1) !important; max-width: none !important; width: auto;
}
.is-style-track::-webkit-scrollbar { display: none; }
.editor-styles-wrapper .is-style-track.wp-block-group { overflow-x: auto; }

.is-style-part-card {
	flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column;
	background: var(--wp--preset--color--base); border: 1px solid var(--sal-line); border-radius: var(--sal-r); padding: 10px;
	transition: border-color .2s;
}
.is-style-part-card:hover { border-color: var(--sal-green); }
.is-style-part-card > * { margin-block: 0; }
.is-style-part-card > :not(figure) { padding-inline: 10px; }
.is-style-part-card .wp-block-image { height: 210px; aspect-ratio: auto; margin-bottom: 18px; }
.is-style-part-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.is-style-part-card p { margin-bottom: 16px; }
.is-style-part-card .sal-textlink { margin-top: auto; margin-bottom: 8px; }
.is-style-part-card.has-green-background-color { border-color: var(--sal-green); }
.is-style-part-card.has-green-background-color p { color: var(--sal-on-green); }

.is-style-cat-card {
	flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column; padding: 0;
	background: #fff; border: 1px solid var(--sal-line); border-radius: var(--sal-r); overflow: hidden; transition: border-color .2s;
}
.is-style-cat-card > * { margin-block: 0 !important; }
.is-style-cat-card:hover { border-color: var(--sal-green); }
.is-style-cat-card:target { border-color: var(--sal-green); box-shadow: 0 0 0 3px var(--sal-accent); }
.sal-cat__top { padding: 12px 18px; border-bottom: 1px solid var(--sal-line); }
.sal-cat__top p { margin: 0; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sal-muted); }
.is-style-cat-card .wp-block-image { height: 190px; aspect-ratio: auto; border-radius: 0; }
.is-style-cat-card .wp-block-image.is-style-photo img { border-radius: 0; }
.sal-cat__body { flex: 1; padding: 20px 18px 18px; border-top: 1px solid var(--sal-line); }
.sal-cat__body h3 { font-size: 1.45rem; margin: 0 0 12px; }
ul.is-style-lines { list-style: none; padding: 0; margin: 0; }
ul.is-style-lines li { padding: 9px 0; border-top: 1px solid var(--sal-line); font-size: .95rem; }
.sal-cat__foot { margin: 0; }
.sal-cat__foot a {
	display: flex; justify-content: space-between; align-items: center; padding: 14px 18px;
	background: var(--sal-green); color: #fff; font-weight: 500; text-decoration: none; transition: background .2s;
}
.sal-cat__foot a::after { content: ""; width: 16px; height: 16px; background: var(--sal-arrow-white) center / contain no-repeat; }
.sal-cat__foot a:hover { background: var(--sal-green-2); text-decoration: none; }
.is-style-cat-card.has-green-background-color { border-color: var(--sal-green); }
.is-style-cat-card.has-green-background-color .sal-cat__top, .is-style-cat-card.has-green-background-color .sal-cat__body,
.is-style-cat-card.has-green-background-color ul.is-style-lines li { border-color: rgba(255,255,255,.15); }
.is-style-cat-card.has-green-background-color .sal-cat__top p { color: #aebba9; }
.is-style-cat-card.has-green-background-color li { color: var(--sal-on-green); }
.is-style-cat-card.has-green-background-color .sal-cat__foot a { background: var(--sal-accent); color: var(--sal-green-2); }
.is-style-cat-card.has-green-background-color .sal-cat__foot a::after { background-image: var(--sal-arrow-dark); }

.sal-arrows { display: flex; gap: 8px; }
.sal-arrows button {
	width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--sal-line); background: #fff;
	color: var(--wp--preset--color--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.sal-arrows button:hover { background: var(--sal-green); color: #fff; border-color: var(--sal-green); }
.sal-arrows svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ Étapes */
.wp-block-columns.sal-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sal-steps > .wp-block-column { position: relative; }
.sal-steps > .wp-block-column::before { content: ""; position: absolute; left: 56px; right: 0; top: 21px; height: 2px; background: var(--sal-line); border-radius: 2px; }
p.is-style-step { width: 44px; height: 44px; border-radius: 50%; background: var(--sal-panel); color: var(--sal-green); display: grid; place-items: center; font-weight: 500; margin: 0 0 22px; }
.sal-steps h3 { margin: 0 0 8px; }

/* ------------------------------------------------------------ Bandeau contact */
.sal-cta { padding: 0 12px 12px; }
.is-style-cta-box { border-radius: var(--sal-r); padding-block: clamp(40px, 6vw, 80px); }
.is-style-cta-box .wp-block-columns { gap: 48px; }
.is-style-cta-box h2 { max-width: 16ch; margin-top: 14px; }
.is-style-cta-box .sal-cta__text { color: var(--sal-on-green); }
.sal-dl { background: rgba(255,255,255,.07); border-radius: var(--sal-r-sm); padding: 26px 28px; font-size: 1.05rem; }
.sal-dl p { margin: 0; padding: 7px 0; font-weight: 500; overflow-wrap: anywhere; }
.sal-dl strong { display: inline-block; min-width: 110px; font-weight: 400; color: #aebba9; }
.is-style-cta-box a:not(.wp-element-button) { color: #fff; }

/* ------------------------------------------------------------ Contact */
.sal-contact__top .sal-lead { max-width: 60ch; opacity: .85; }
.sal-contact h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.sal-contact-cols { gap: 40px; margin-top: 2.5rem; align-items: flex-start; }
.is-style-form-card { border: 1px solid var(--sal-line); border-radius: var(--sal-r); padding: clamp(22px, 3vw, 36px); }
.is-style-info { border: 1px solid var(--sal-line); border-radius: var(--sal-r); padding: 20px 22px; }
.sal-info-col > .is-style-info + .is-style-info { margin-top: 12px; }
.is-style-info p { margin: 0; }
.is-style-info p.is-style-label { font-size: .85rem; margin-bottom: 4px; }
.is-style-info p:not(.is-style-label) { font-size: 1.15rem; font-weight: 500; color: var(--sal-green); }
.is-style-info.has-green-background-color p:not(.is-style-label) { color: #fff; }
.is-style-info a { color: inherit; }

/* Formulaire Contact Form 7 */
.sal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.sal-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: .88rem; font-weight: 500; color: var(--sal-green); }
.sal-field i { font-style: normal; font-weight: 400; color: var(--sal-muted); }
.sal-full { grid-column: 1 / -1; }
.sal-form .wpcf7-form-control-wrap { display: block; }
.sal-form input[type="text"], .sal-form input[type="email"], .sal-form input[type="tel"], .sal-form select, .sal-form textarea {
	box-sizing: border-box; width: 100%; font: inherit; font-size: 1rem; font-weight: 400; color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--base); border: 1px solid var(--sal-line); border-radius: var(--sal-r-sm); padding: 12px 14px;
	transition: border-color .2s, background .2s;
}
.sal-form textarea { min-height: 150px; resize: vertical; }
.sal-form input:focus, .sal-form select:focus, .sal-form textarea:focus { outline: none; border-color: var(--sal-green); background: #fff; box-shadow: 0 0 0 3px rgba(140,198,63,.25); }
.sal-consent { font-size: .88rem; color: var(--sal-muted); }
.sal-consent .wpcf7-list-item { margin: 0; }
.sal-consent label { display: flex; gap: 10px; align-items: flex-start; }
.sal-consent input { margin-top: 4px; accent-color: var(--sal-green); }
.sal-consent a { color: var(--sal-green); text-decoration: underline; }
.sal-form .wpcf7-submit, .sal-submit {
	appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 500;
	color: #fff; border-radius: 999px; padding: 14px 64px 14px 24px;
	background-color: var(--sal-green); background-repeat: no-repeat;
	background-image: var(--sal-arrow-green), radial-gradient(circle at calc(100% - 25px) 50%, #fff 16px, transparent 17px);
	background-size: 15px, auto; background-position: calc(100% - 17px) 50%, 0 0;
}
.sal-form .wpcf7-submit:hover { background-color: var(--sal-green-2); }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; border-radius: var(--sal-r-sm); padding: 14px 16px; font-size: .95rem; }
.wpcf7-not-valid-tip { font-size: .82rem; font-weight: 400; margin-top: 4px; }
.wpcf7-spinner { margin-left: 12px; }
/* Champ piège anti-spam : hors écran, invisible et ignoré par les lecteurs d'écran */
.sal-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ Pages légales */
.sal-legal h2 { margin-top: 40px; }
.sal-legal p, .sal-legal li { color: var(--sal-muted); }
.sal-legal a { text-decoration: underline; }

/* ------------------------------------------------------------ Pied de page */
.sal-footer { font-size: .95rem; }
.sal-footer__cols { gap: 40px; }
.sal-footer__logo img { width: 150px; border-radius: 0; }
h2.sal-footer__title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sal-muted); font-weight: 500; margin-bottom: 14px; }
ul.sal-footer__list { list-style: none; padding: 0; margin: 0; }
ul.sal-footer__list li { margin-bottom: 8px; }
.sal-footer a { color: var(--wp--preset--color--ink); }
.sal-footer a:hover { color: var(--sal-green); }
.sal-footer__bottom { margin-top: 48px !important; padding-top: 20px; border-top: 1px solid var(--sal-line); font-size: .85rem; color: var(--sal-muted); }
.sal-footer__bottom p { margin: 0; }
.sal-footer__bottom a { color: var(--sal-muted); }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1024px) {
	.wp-block-columns.sal-cards4, .wp-block-columns.sal-steps { grid-template-columns: repeat(2, 1fr); }
	.wp-block-columns.sal-cards3, .wp-block-columns.sal-cards3.is-even { grid-template-columns: 1fr; }
	.sal-prose-2 { columns: 1; }
	.sal-cards3:not(.is-even) .is-style-card { min-height: 0; }
	.sal-cards3:not(.is-even) .is-style-card p.is-style-label { margin-bottom: 24px; }
	.sal-nav .wp-block-navigation-item__content { padding: 9px 12px; }
}
@media (max-width: 781px) {
	:root { --sal-header-h: 68px; }
	.wp-block-columns.sal-cards4, .wp-block-columns.sal-steps { grid-template-columns: 1fr; }
	.sal-header .wp-block-site-logo img { height: 22px; }
	.sal-phones { display: none; }
	.sal-header__contact .wp-block-button__link { padding: 5px 5px 5px 14px; font-size: .9rem; white-space: nowrap; gap: 8px; }
	.sal-header__inner { gap: 10px; }
	.sal-header .wp-block-site-logo { flex: 1 1 auto; }
	.is-style-photo-card-plain .wp-block-cover__image-background { padding: 8% 26% 42%; }
	.wp-block-cover.is-style-hero:not(.is-page-hero):not(.is-about-hero) { min-height: 0; }
	.sal-hero__content h1, .sal-home-hero .sal-home-hero__text h1.wp-block-heading { font-size: clamp(1.8rem, 8.4vw, 2.4rem); }
	.sal-home-hero__cols { gap: 8px; }
	.sal-home-hero__media { order: -1; }
	.wp-block-image.sal-drawing img { max-height: 24svh; }
	.sal-home-hero .is-style-stats { width: 100%; }
	.is-style-stats { display: grid !important; grid-template-columns: repeat(3, 1fr); width: 100%; padding: 12px 0 10px; }
	.is-style-stats > .wp-block-group { padding: 0 12px; }
	p.is-style-stat { font-size: 1.1rem; }
	.is-style-stats p.is-style-label { font-size: .62rem; letter-spacing: .03em; }
	.wp-block-cover.is-style-photo-card, .wp-block-cover.is-style-photo-card-plain { aspect-ratio: 4 / 3; }
	.is-style-panel, .is-style-panel-dark { padding: 16px; }
	.is-style-panel > .wp-block-columns, .is-style-panel-dark > .wp-block-columns { gap: 24px; }
	.sal-panel__body { padding: 12px 8px 8px; }
	.is-style-panel > .wp-block-columns > .sal-panel__media:first-child { order: 2; }
	.is-style-panel-dark > .wp-block-columns > .sal-panel__media:first-child { order: 2; }
	.is-style-part-card, .is-style-cat-card { flex-basis: 260px; }
	.sal-form { grid-template-columns: 1fr; }
	.wp-block-cover.is-about-hero { padding: 72px 12px 12px; }
	.sal-tiles { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; }
	.sal-footer__cols { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
