/*
 * Sui Generis Consulting: one stylesheet for the front and the editor canvas.
 * Values come from the validated mockup (Figma file 0JKS2lBKSIjId0RlEPHR5D, export HOME-SUI-GENERIS.jpg).
 */

:root {
	--sg-rayon-carte: 25px;
	--sg-rayon-encart: 45px;
	--sg-rayon-pilule: 50px;
	--sg-trait: #e5e7eb;
	--sg-texte-sur-nuit: #c3cad6;
	--sg-icone: url("../icons/arrow-right.svg");
	--sg-geo-decalage: max(16px, calc((100% - 1440px) / 2 + 68px));
	/* Strong ease-out shared by every entrance and press. */
	--sg-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Accent words: an italic run inside a heading is set in Playfair Display, as in the mockup. */
:where(h1, h2, h3, .sg-accent) :where(em, i) {
	font-family: var(--wp--preset--font-family--playfair);
	font-style: italic;
	font-weight: 700;
	letter-spacing: 0;
}

/* Two-tone ring (WCAG C40): the night outline reads on light surfaces, the turquoise inner ring on dark ones. */
:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--wp--preset--color--nuit);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--wp--preset--color--accent);
}

.screen-reader-text:focus {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--nuit);
	padding: 12px 20px;
	z-index: 100000;
}

/* ---------- Buttons ---------- */

.wp-block-button.sg-fleche .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.wp-block-button.sg-fleche .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--sg-icone) center / contain no-repeat;
	mask: var(--sg-icone) center / contain no-repeat;
	transition: transform 180ms var(--sg-ease-out);
}

.wp-block-button.sg-fleche .wp-block-button__link:hover::after {
	transform: translateX(3px);
}

:is(.wp-block-button__link, .wp-element-button, .jet-form-builder__submit) {
	transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, transform 160ms var(--sg-ease-out);
}

/* Press feedback: the button gives way under the finger or the click (front only, not while editing). */
body:not(.editor-styles-wrapper) :is(.wp-block-button__link, .wp-element-button, .jet-form-builder__submit):active {
	transform: scale(0.97);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.sg-bouton-contour .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: var(--wp--preset--color--blanc);
	padding: 10px 23px;
}

.wp-block-button.sg-bouton-contour .wp-block-button__link:hover {
	background: var(--wp--preset--color--blanc);
	border-color: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--primaire);
}

.wp-block-button.sg-bouton-petit .wp-block-button__link {
	font-size: 12px;
	letter-spacing: 0.25em;
	padding: 8px 16px;
}

.wp-block-button.sg-bouton-petit .wp-block-button__link::after {
	width: 13px;
	height: 13px;
}

.wp-block-button.sg-bouton-nuit .wp-block-button__link {
	background: var(--wp--preset--color--encre);
	color: var(--wp--preset--color--blanc);
}

.wp-block-button.sg-bouton-nuit .wp-block-button__link:hover {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--encre);
}

/* ---------- Section headings ---------- */

.sg-titre-section {
	text-align: center;
}

/* Turquoise bar under section titles: a block pseudo-element, so the heading stays one text flow around its italic accent. */
.sg-titre-section::after {
	content: "";
	display: block;
	width: 80px;
	height: 4px;
	margin: 16px auto 0;
	border-radius: 2px;
	background: var(--wp--preset--color--accent);
}

.sg-titre-section.has-text-align-left {
	text-align: left;
}

.sg-titre-section.has-text-align-left::after {
	margin-left: 0;
}

.sg-intro.sg-intro {
	max-width: 862px;
}

.sg-intro {
	margin-inline: auto;
	text-align: center;
	line-height: 2.2;
}

.sg-surtitre {
	color: var(--wp--preset--color--primaire);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: uppercase;
}

/* ---------- Header ---------- */

.sg-entete {
	position: absolute;
	inset: 42px 0 auto;
	z-index: 20;
	padding-inline: clamp(12px, 3.5vw, 50px);
}

/* Header part edited alone: out of flow it would overflow a frame sized by its in-flow content. */
.editor-styles-wrapper .is-root-container > .sg-entete {
	position: static;
	padding-block: 24px;
}

.sg-entete__barre {
	max-width: 1340px;
	min-height: 86px;
	margin-inline: auto;
	padding: 10px clamp(16px, 3.5vw, 51px);
	border-radius: 90px;
	box-shadow: 0 12px 24px rgba(13, 16, 45, 0.08);
}

/* Doubled class: on some pages the global layout gap is printed after this stylesheet. */
.sg-entete__barre.sg-entete__barre {
	gap: 24px;
}

.sg-logo {
	flex: none;
}

.sg-logo img {
	width: clamp(150px, 25vw, 360px);
	height: auto;
}

/* Below 360 px the logo, the menu toggle and the contact button no longer fit side by side at 150 px. */
@media (max-width: 359px) {
	.sg-logo img {
		width: 118px;
	}
}

.sg-entete__actions {
	gap: clamp(16px, 3vw, 40px);
}

.sg-nav {
	gap: clamp(20px, 3vw, 40px);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--wp--preset--color--encre);
}

.sg-nav .wp-block-navigation-item__content {
	text-decoration: none;
	padding-block: 8px;
	white-space: nowrap;
}

.sg-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primaire);
}

/* From the burger breakpoint to 1059 px the desktop bar is tight: "À propos" wrapped and the contact button left the
   bar. Narrower tracking and gaps and a slightly smaller logo keep everything on one line inside it. */
@media (min-width: 900px) and (max-width: 1059px) {
	.sg-nav.sg-nav {
		gap: 18px;
		letter-spacing: 0.14em;
	}

	.sg-entete__actions.sg-entete__actions {
		gap: 16px;
	}

	.sg-logo img {
		width: 200px;
	}
}

.sg-nav .wp-block-navigation__submenu-icon {
	width: 10px;
	height: 10px;
	color: var(--wp--preset--color--accent);
}

.sg-nav .wp-block-navigation__submenu-container {
	min-width: 290px !important;
	padding: 10px !important;
	border: 0 !important;
	border-radius: 16px;
	box-shadow: 0 12px 24px rgba(13, 16, 45, 0.1), 0 25px 50px -12px rgba(13, 16, 45, 0.1);
	letter-spacing: 0.04em;
	text-transform: none;
	font-size: 15px;
	font-weight: 600;
}

.sg-entete .sg-nav .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 10px 14px;
	border-radius: 10px;
}

.sg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--brume);
}

.sg-nav .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
}

/* Logo, call to action and contact details live in the menu for the open overlay only. */
.sg-nav li:has(> .sg-nav__logo),
.sg-nav .sg-nav__mobile {
	display: none !important;
}

/* Below 900 px the inline menu no longer fits (it overflowed from 600 to 640 px): the overlay takes over, tablets included. */
@media (max-width: 899px) {
	.sg-nav.sg-nav .wp-block-navigation__responsive-container-open {
		display: flex;
	}

	.sg-nav.sg-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}
}

/* ---------- Mobile menu (open overlay) ---------- */

/* The menu is justified right for the desktop bar; core passes that setting down to the overlay through these variables. */
.sg-nav .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: stretch;
	padding: 0;
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--nuit);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.sg-nav .is-menu-open .wp-block-navigation__responsive-close {
	max-width: 640px;
	min-height: 100%;
	margin-inline: auto;
}

/* Same outer spacing as the floating header, so the logo stays where it was before opening. */
.sg-nav .is-menu-open .wp-block-navigation__responsive-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 16px max(12px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.sg-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 26px;
	right: max(28px, calc(env(safe-area-inset-right) + 16px));
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--brume);
	color: var(--wp--preset--color--nuit);
}

.sg-nav .is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 24px;
	height: 24px;
}

.sg-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0 16px !important;
}

/* Core copies the nav classes onto each list: the desktop capitals and tracking of .sg-nav are reset here. */
.sg-nav .is-menu-open .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: stretch !important;
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	gap: 0;
	font-size: inherit;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
}

.sg-nav .is-menu-open li:has(> .sg-nav__logo) {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	min-height: 64px;
	margin-bottom: 4px;
}

.sg-nav .is-menu-open .sg-nav__logo a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.sg-nav .is-menu-open .sg-nav__logo {
	display: block !important;
}

.sg-nav .is-menu-open .sg-nav__logo img {
	width: 150px;
	height: auto;
}

/* Main entries: large, left-aligned, one rule between each. */
.sg-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:not(:has(> .sg-nav__logo)):not(.sg-nav__coordonnee) {
	flex-direction: column;
	align-items: stretch;
	border-bottom: 1px solid var(--sg-trait);
}

.sg-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 12px 4px;
	color: var(--wp--preset--color--nuit);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.sg-nav .is-menu-open .wp-block-navigation-item__content[aria-current="page"],
.sg-nav .is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primaire);
}

/* The services stay unfolded as an indented list: no toggle, no floating card. */
.sg-nav .is-menu-open .wp-block-navigation-submenu__toggle {
	display: none;
}

.sg-nav .is-menu-open .wp-block-navigation__submenu-container {
	position: static !important;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 0 14px 4px !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0;
	opacity: 1;
	visibility: visible;
}

.sg-entete .sg-nav .is-menu-open .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 9px 0 9px 16px;
	border-left: 1px solid var(--sg-trait);
	border-radius: 0;
	color: var(--wp--preset--color--gris);
}

.sg-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: transparent;
	color: var(--wp--preset--color--primaire);
}

/* Call to action and contact details at the bottom, within thumb reach. */
.sg-nav .is-menu-open .sg-nav__cta {
	display: flex !important;
	margin-top: auto;
	padding-top: 16px;
}

.sg-nav .is-menu-open .sg-nav__cta .wp-block-button,
.sg-nav .is-menu-open .sg-nav__cta .wp-block-button__link {
	width: 100%;
}

.sg-nav .is-menu-open .sg-nav__cta .wp-block-button__link {
	justify-content: center;
	min-height: 52px;
}

.sg-nav .is-menu-open .wp-block-navigation__container:has(.sg-nav__coordonnee) {
	padding-top: 4px;
}

.sg-nav .is-menu-open .sg-nav__coordonnee {
	display: flex !important;
	justify-content: center;
}

.sg-nav .is-menu-open .wp-block-navigation__container > .sg-nav__coordonnee > .wp-block-navigation-item__content {
	padding: 13px 0;
	color: var(--wp--preset--color--primaire);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
}

.sg-nav .is-menu-open a:focus-visible,
.sg-nav .is-menu-open button:focus-visible {
	outline: 2px solid var(--wp--preset--color--primaire);
	outline-offset: 2px;
}

.sg-entete__contact .wp-block-button__link {
	white-space: nowrap;
}

/* The admin bar pushes everything down; the floating header follows. */
.admin-bar .sg-entete {
	top: calc(42px + var(--wp-admin--admin-bar--height, 32px));
}

@media (max-width: 899px) {
	.sg-entete {
		inset-block-start: 16px;
	}

	.admin-bar .sg-entete {
		top: calc(16px + var(--wp-admin--admin-bar--height, 46px));
	}

	.sg-entete__barre {
		min-height: 64px;
		padding-block: 8px;
	}

	.sg-entete__barre.sg-entete__barre {
		gap: 8px;
	}

	.sg-entete__actions {
		gap: 8px;
	}

	.sg-entete .sg-entete__contact .wp-block-button__link {
		padding: 9px 14px;
		font-size: 12px;
		letter-spacing: 0.12em;
	}

	.sg-entete .sg-entete__contact .wp-block-button__link::after {
		display: none;
	}
}

/* ---------- Page banner (inner pages) ---------- */

.sg-bandeau-page {
	padding-top: clamp(150px, 14vw, 200px);
	padding-bottom: clamp(48px, 6vw, 80px);
	margin-block-start: 0;
}

/* Banner text starts where the page content starts: the wide grid on section pages, the reading column on text pages. */
.sg-bandeau-page.sg-bandeau-page > * {
	max-width: min(760px, 100%);
	margin-left: max(0px, (100% - var(--sg-bandeau-colonne, var(--wp--style--global--wide-size))) / 2) !important;
	margin-right: auto !important;
}

.sg-bandeau-page.sg-bandeau-page > h1 {
	max-width: min(900px, 100%);
}

.sg-bandeau-page--texte {
	--sg-bandeau-colonne: var(--wp--style--global--content-size);
}

.sg-principal {
	margin-block-start: 0;
}

.sg-principal > .sg-contenu {
	padding-block: var(--wp--preset--spacing--60);
}

.sg-principal--compose > .wp-block-post-content > * + * {
	margin-block-start: 0;
}

/* ---------- Home: hero ---------- */

/* Beyond the 1440 px mockup frame, a leading gutter keeps the text under the centred header and the photo runs to the edge. */
.sg-hero {
	display: grid;
	grid-template-columns: max(0px, (100% - 1440px) / 2) minmax(0, min(60%, 864px)) minmax(0, 1fr);
	min-height: 749px;
	padding: 0 !important;
	background: var(--wp--preset--color--primaire);
	color: var(--wp--preset--color--blanc);
}

.sg-hero__texte {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15px;
	padding: 170px clamp(16px, 4vw, 70px) 120px clamp(16px, 5.35vw, 77px);
	max-width: 760px;
}

.sg-hero__texte > * {
	margin: 0 !important;
}

.sg-hero__surtitre {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.25em;
	line-height: 40px;
	text-transform: uppercase;
}

.sg-hero__surtitre::before {
	content: "";
	flex: none;
	width: 5px;
	height: 40px;
	background: var(--wp--preset--color--accent);
}

.sg-hero h1 {
	color: var(--wp--preset--color--blanc);
	font-size: var(--wp--preset--font-size--titre-page);
	line-height: 1;
	max-width: 628px;
}

.sg-hero__texte p:not(.sg-hero__surtitre) {
	max-width: 546px;
	padding-top: 30px;
	font-size: var(--wp--preset--font-size--moyen);
	font-weight: 500;
	line-height: 1.5;
}

.sg-hero__texte .wp-block-buttons {
	gap: 20px;
	padding-top: 10px;
}

.sg-hero__visuel {
	grid-column: 3;
	position: relative;
	margin: 0 !important;
	min-height: 100%;
}

.sg-hero__photo {
	position: absolute;
	inset: 0;
	margin: 0 !important;
}

/* Doubled classes: in the editor every block wrapper gets position: relative, which dropped the photo
   out of its column and the portrait below it. */
.sg-hero__photo.sg-hero__photo,
.sg-hero__portrait.sg-hero__portrait {
	position: absolute;
}

/* Important: in the editor the image block writes an inline height: auto, which left a gap under the photo. */
.sg-hero__photo.sg-hero__photo img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: 30% center;
}

.sg-hero__portrait {
	position: absolute;
	top: 222px;
	left: -75px;
	width: 266px;
	margin: 0 !important;
	border: 8px solid var(--wp--preset--color--blanc);
	border-radius: var(--sg-rayon-encart);
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(13, 16, 45, 0.35);
}

.sg-hero__portrait img {
	display: block;
	width: 100%;
	aspect-ratio: 250 / 375;
	object-fit: cover;
}

@media (max-width: 1100px) {
	.sg-hero__portrait {
		top: auto;
		bottom: 150px;
		width: 200px;
	}
}

@media (max-width: 899px) {
	.sg-hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.sg-hero__texte,
	.sg-hero__visuel {
		grid-column: auto;
	}

	.sg-hero__texte {
		padding: 130px 16px 48px;
		max-width: none;
	}

	.sg-hero__visuel {
		aspect-ratio: 4 / 3;
	}

	.sg-hero__portrait {
		top: auto;
		left: 16px;
		bottom: -24px;
		width: 120px;
		border-width: 5px;
		border-radius: 24px;
	}
}

/* ---------- Home: key figures ---------- */

/* Full-width band under the card: its top overlaps the hero, the rest carries the mist background of the next section. */
.sg-chiffres-bande {
	position: relative;
	z-index: 2;
	margin-top: -57px !important;
	background: linear-gradient(to bottom, transparent 57px, var(--wp--preset--color--brume) 57px);
}

.sg-chiffres {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	width: min(900px, calc(100% - 32px));
	margin: 0 auto !important;
	padding: 28px clamp(16px, 4vw, 60px) !important;
	border-radius: var(--sg-rayon-pilule);
	background: var(--wp--preset--color--nuit);
	color: var(--wp--preset--color--blanc);
	text-align: center;
}

.sg-chiffre {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.sg-chiffre > * {
	margin: 0 !important;
}

.sg-chiffre__valeur {
	color: var(--wp--preset--color--accent);
	font-size: clamp(36px, 4vw, 50px);
	font-weight: 600;
	line-height: 1;
}

.sg-chiffre__valeur sup {
	font-size: 0.55em;
	vertical-align: 0.8em;
	line-height: 0;
}

.sg-chiffre__unite {
	color: var(--wp--preset--color--accent);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.sg-chiffre__libelle {
	max-width: 125px;
	padding-top: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

/* Stacked hero: no overlap, so the portrait thumbnail hanging below the photo stays visible above the band. */
@media (max-width: 899px) {
	.sg-chiffres-bande {
		position: static;
		margin-top: 0 !important;
		padding-top: 48px;
		background: var(--wp--preset--color--brume);
	}
}

/* Phones keep the three figures side by side: stacked, they took 390 px of height for three numbers. */
@media (max-width: 599px) {
	.sg-chiffres {
		gap: 8px;
		padding: 24px 12px !important;
		border-radius: 30px;
	}

	.sg-chiffre__valeur {
		font-size: 32px;
	}

	.sg-chiffre__unite,
	.sg-chiffre__libelle {
		font-size: 12px;
		line-height: 16px;
	}

	.sg-chiffre__libelle {
		max-width: 100px;
		padding-top: 6px;
	}
}

@media (max-width: 339px) {
	.sg-chiffres {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Grid and flex containers own their gaps: the flow layout margin WordPress adds between children must not apply. */
:where(.sg-hero, .sg-chiffres-bande, .sg-chiffres, .sg-situations__grille, .sg-pourquoi__grille, .sg-temoignage-vedette, .sg-temoignage-vedette > .wp-block-group) > * {
	margin-block: 0 !important;
}

/* ---------- Generic home section ---------- */

.sg-section {
	position: relative;
	padding-block: var(--wp--preset--spacing--70);
	margin-block-start: 0 !important;
}

.sg-section > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

.sg-section > .sg-titre-section + .sg-intro {
	margin-block-start: 0;
}

/* Validated variant: a thin line on the right with a turquoise square at each section boundary. */
@media (min-width: 1200px) {
	.sg-geo::before,
	.sg-geo::after {
		content: "";
		position: absolute;
		right: var(--sg-geo-decalage);
		pointer-events: none;
	}

	.sg-geo::after {
		top: 0;
		bottom: 0;
		width: 1px;
		background: var(--sg-trait);
	}

	.sg-geo::before {
		top: -5px;
		width: 11px;
		height: 11px;
		margin-right: -5px;
		background: var(--wp--preset--color--accent);
		z-index: 1;
	}

	.sg-geo.has-nuit-background-color::after {
		background: rgba(255, 255, 255, 0.12);
	}
}

/* ---------- Home: trust (logos + featured testimonial) ---------- */

.sg-confiance {
	padding-top: clamp(64px, 8vw, 110px);
	background: var(--wp--preset--color--brume);
}

.sg-logos {
	gap: clamp(24px, 6vw, 80px);
	justify-content: center;
	align-items: center;
}

/* 56 px keeps the Cyclable wordmark (drawn under its arcs) as large as the mockup's single-line logos. */
.sg-logos .wp-block-image img {
	max-height: 56px;
	width: auto;
	filter: grayscale(1);
	opacity: 0.8;
}

.sg-temoignage-vedette {
	display: grid;
	grid-template-columns: 253px minmax(0, 1fr);
	gap: 21px;
	align-items: center;
	margin-inline: auto;
	padding: 18px clamp(20px, 6vw, 80px) !important;
}

/* Doubled classes: the constrained layout prints its own max-width after this stylesheet. */
.sg-temoignage-vedette.sg-temoignage-vedette {
	max-width: 1116px;
}

.sg-situations__grille.sg-situations__grille {
	max-width: 1128px;
}

.sg-tableau.sg-tableau {
	max-width: 1140px;
}

.sg-temoignage-vedette__guillemet {
	margin: 0 !important;
}

.sg-temoignage-vedette__guillemet img {
	width: 100%;
	height: auto;
}

.sg-temoignage-vedette .wp-block-quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.sg-temoignage-vedette .wp-block-quote p {
	font-size: var(--wp--preset--font-size--grand);
	font-weight: 300;
	line-height: 1.64;
	color: var(--wp--preset--color--encre);
}

@media (max-width: 781px) {
	.sg-temoignage-vedette {
		grid-template-columns: minmax(0, 1fr);
		padding-block: 32px !important;
	}

	.sg-temoignage-vedette__guillemet {
		width: 72px;
	}
}

/* Testimonial author: initials avatar, name in turquoise capitals, role underneath. The margin is important because the parent groups reset their children's flow margins. */
.sg-auteur {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 16px;
	align-items: center;
	margin-top: 24px !important;
}

.sg-auteur > * {
	margin: 0 !important;
}

.sg-auteur__initiales {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--wp--preset--color--primaire);
	color: var(--wp--preset--color--blanc);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.05em;
}

/* Doubled classes: on article pages the global paragraph line-height is printed after this stylesheet. */
.sg-auteur__nom.sg-auteur__nom {
	align-self: end;
	color: var(--wp--preset--color--primaire);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 18px;
	text-transform: uppercase;
}

.sg-auteur__role.sg-auteur__role {
	align-self: start;
	font-size: 13px;
	line-height: 18px;
}

/* ---------- Home: situations ---------- */

.sg-situations__grille {
	display: grid;
	grid-template-columns: minmax(0, 554fr) minmax(0, 544fr);
	gap: 30px;
	align-items: center;
	margin-inline: auto;
}

.sg-situations__photo {
	margin: 0 !important;
	height: 100%;
}

/* Important: same inline height: auto from the editor's image block as on the hero photo. */
.sg-situations__photo img {
	width: 100%;
	height: 100% !important;
	min-height: 420px;
	object-fit: cover;
}

.sg-situations__cartes {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.sg-situations__cartes > * {
	margin: 0 !important;
}

.sg-encart {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(32px, 4vw, 44px) clamp(24px, 4vw, 60px) !important;
	border-radius: var(--sg-rayon-encart);
}

.sg-encart > * {
	margin: 0 !important;
}

.sg-encart__tete {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sg-encart__tete > * {
	margin: 0 !important;
}

.sg-encart__tete .wp-block-image {
	flex: none;
	width: 60px;
}

.sg-encart__tete h3 {
	font-size: var(--wp--preset--font-size--titre-encart);
	line-height: 1.33;
	color: inherit;
}

.sg-encart p {
	line-height: 1.75;
}

@media (max-width: 899px) {
	.sg-situations__grille {
		grid-template-columns: minmax(0, 1fr);
	}

	.sg-situations__photo img {
		min-height: 0;
		aspect-ratio: 4 / 3;
	}
}

/* ---------- Sliders (services, testimonials) ---------- */

/* Above the section's decorative right line, which must pass under the cards. */
.sg-slider {
	--sg-carte-largeur: 361px;
	position: relative;
	z-index: 1;
}

.sg-slider__piste {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: min(var(--sg-carte-largeur), 82vw);
	gap: 21px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--wp--style--root--padding-left);
	padding-inline: var(--wp--style--root--padding-left);
	padding-block: 8px;
	margin-inline: calc(var(--wp--style--root--padding-left) * -1) calc(var(--wp--style--root--padding-right) * -1) !important;
	scrollbar-width: none;
}

.sg-slider__piste::-webkit-scrollbar {
	display: none;
}

.sg-slider__piste > * {
	scroll-snap-align: start;
	margin: 0 !important;
}

.sg-slider__piste:focus-visible {
	outline-offset: -2px;
}

.sg-slider__commandes.sg-slider__commandes {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 32px;
}

.sg-slider__commandes[hidden] {
	display: none;
}

.sg-slider__barre {
	position: relative;
	width: min(540px, 60vw);
	height: 6px;
	background: var(--wp--preset--color--contour);
	overflow: hidden;
}

.sg-slider__curseur {
	position: absolute;
	inset: 0 auto 0 0;
	width: 30%;
	background: var(--wp--preset--color--accent);
	transform-origin: left center;
	will-change: transform;
}

.sg-slider__bouton {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid var(--wp--preset--color--nuit);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--nuit);
	cursor: pointer;
	transition: background-color 160ms ease-out, color 160ms ease-out, opacity 160ms ease-out;
}

.sg-slider__bouton::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--sg-icone) center / contain no-repeat;
	mask: var(--sg-icone) center / contain no-repeat;
}

.sg-slider__bouton--precedent::before {
	transform: scaleX(-1);
}

.sg-slider__bouton:hover:not(:disabled) {
	background: var(--wp--preset--color--nuit);
	color: var(--wp--preset--color--blanc);
}

.sg-slider__bouton:disabled {
	opacity: 0.3;
	cursor: default;
}

/* In the editor every card stays reachable: the track wraps instead of scrolling. */
.editor-styles-wrapper .sg-slider__piste {
	grid-auto-flow: row;
	grid-template-columns: repeat(auto-fill, minmax(min(var(--sg-carte-largeur), 100%), 1fr));
	overflow: visible;
	margin-inline: 0 !important;
	padding-inline: 0;
}

/* ---------- Home: services ---------- */

/* The track runs to the right edge of the window, however wide, as in the mockup. */
.sg-domaines {
	--sg-fuite-droite: max(var(--wp--style--root--padding-right), (100vw - 100%) / 2);
	overflow-x: clip;
	background: var(--wp--preset--color--brume);
}

/* Extra bottom room, given back by the margin, so the scrolling track does not clip the hover shadow. */
.sg-domaines .sg-slider__piste {
	padding-block-end: 20px;
	margin-block-end: -12px;
	padding-inline-end: var(--sg-fuite-droite);
	margin-inline-end: calc(var(--sg-fuite-droite) * -1) !important;
}

.sg-domaine {
	display: flex;
	flex-direction: column;
	min-height: 320px;
	padding: 46px 31px 31px !important;
	border-radius: var(--sg-rayon-carte);
	background: var(--wp--preset--color--primaire);
	color: var(--wp--preset--color--blanc);
}

.sg-domaine > * {
	margin: 0 !important;
}

.sg-domaine h3 {
	min-height: 76px;
	font-size: var(--wp--preset--font-size--titre-carte);
	line-height: 35px;
	color: inherit;
}

.sg-domaine h3 a {
	color: inherit;
	text-decoration: none;
}

.sg-domaine p {
	font-size: 14px;
	line-height: 24px;
}

.sg-domaine .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 24px;
	justify-content: flex-end;
}

.sg-domaine:nth-child(4n + 2) {
	background: var(--wp--preset--color--nuit);
}

.sg-domaine:nth-child(4n + 3) {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--nuit);
}

.sg-domaine:nth-child(4n + 3) .wp-block-button__link {
	background: var(--wp--preset--color--encre);
	color: var(--wp--preset--color--blanc);
}

.sg-domaine:nth-child(4n + 3) .wp-block-button__link:hover {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--encre);
}

.sg-domaine:nth-child(4n + 1):not(:first-child) .wp-block-button__link,
.sg-domaine:nth-child(4n + 4) .wp-block-button__link {
	background: var(--wp--preset--color--accent);
}

/* Missions page: every service visible, no scrolling. */
.sg-domaines--grille .sg-slider__piste {
	grid-auto-flow: row;
	grid-template-columns: repeat(auto-fill, minmax(min(361px, 100%), 1fr));
	overflow: visible;
	margin-inline: 0 !important;
	padding-inline: 0;
}

.sg-domaines--grille .sg-slider__commandes {
	display: none;
}

/* ---------- Home: why Sui Generis ---------- */

.sg-pourquoi__grille {
	display: grid;
	grid-template-columns: minmax(0, 442fr) minmax(0, 760fr);
	gap: 21px;
	align-items: center;
}

.sg-pourquoi__texte {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.sg-pourquoi__texte > * {
	margin: 0 !important;
}

.sg-pourquoi__texte h2 {
	font-size: var(--wp--preset--font-size--affiche);
	line-height: 1.18;
}

.sg-pourquoi__texte p {
	max-width: 416px;
	line-height: 2.2;
}

.sg-pourquoi__cartes {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.sg-pourquoi__cartes > * {
	margin: 0 !important;
}

.sg-argument {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 300px;
	padding: 30px 31px !important;
	border-radius: var(--sg-rayon-carte);
	background: var(--wp--preset--color--carte);
}

.sg-argument > * {
	margin: 0 !important;
}

.sg-argument .wp-block-image {
	width: 50px;
}

.sg-argument h3 {
	color: var(--wp--preset--color--primaire);
	font-size: var(--wp--preset--font-size--titre-carte);
	line-height: 28px;
	max-width: 260px;
}

.sg-argument p {
	font-size: 14px;
	line-height: 24px;
}

@media (max-width: 1023px) {
	.sg-pourquoi__grille {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

@media (max-width: 599px) {
	.sg-pourquoi__cartes {
		grid-template-columns: minmax(0, 1fr);
	}

	.sg-argument {
		min-height: 0;
	}
}

/* ---------- Home: comparison table ---------- */

.sg-comparatif {
	background: var(--wp--preset--color--brume);
}

.sg-tableau {
	margin-inline: auto;
	overflow-x: auto;
	border-radius: var(--sg-rayon-carte);
	background: var(--wp--preset--color--blanc);
	box-shadow: var(--wp--preset--shadow--carte);
}

.sg-tableau table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 15px;
}

/* "table :is(th, td)" outranks the core Table block style (".wp-block-table td"), which imposes black borders and 0.5em padding. */
.sg-tableau table :is(th, td) {
	padding: 24px;
	border: 0;
	border-top: 1px solid var(--sg-trait);
	text-align: left;
	vertical-align: middle;
	line-height: 24px;
}

.sg-tableau table thead {
	border-bottom: 0;
}

.sg-tableau thead th {
	box-sizing: border-box;
	height: 124px;
	padding: 32px;
	border-top: 0;
	font-size: 20px;
	font-weight: 600;
	text-align: center;
}

.sg-tableau table :is(th, td):first-child {
	width: 21%;
	font-weight: 700;
	color: var(--wp--preset--color--encre);
}

.sg-tableau table :is(th, td):nth-child(2) {
	background: var(--wp--preset--color--nuit);
	border-color: #62656a;
	color: #a8adb5;
}

.sg-tableau thead th:nth-child(2) {
	color: var(--wp--preset--color--blanc);
}

.sg-tableau table :is(th, td):nth-child(3) {
	background: var(--wp--preset--color--lagon);
	font-weight: 500;
	color: var(--wp--preset--color--encre);
}

.sg-tableau thead th:nth-child(3) {
	background: var(--wp--preset--color--accent);
}

.sg-tableau thead th:nth-child(3)::before {
	content: "Avec";
	display: block;
	width: max-content;
	margin: 0 auto 8px;
	padding: 4px 12px;
	border-radius: var(--sg-rayon-pilule);
	background: var(--wp--preset--color--nuit);
	color: var(--wp--preset--color--blanc);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: normal;
	text-transform: uppercase;
}

.sg-tableau tbody td:nth-child(2)::before,
.sg-tableau tbody td:nth-child(3)::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 12px;
	vertical-align: -3px;
	background: center / contain no-repeat;
}

/* Cloudflare and browsers keep theme images for seven days: bump ?ver= whenever one of these SVG files changes. */
.sg-tableau tbody td:nth-child(2)::before {
	background-image: url("../images/x-circle.svg?ver=20261016");
}

.sg-tableau tbody td:nth-child(3)::before {
	background-image: url("../images/check-circle.svg?ver=20261016");
}

.sg-tableau thead th:first-child {
	background: var(--wp--preset--color--blanc);
}

/* Phones: each criterion spans the row, the two offers sit side by side underneath, so the
   Sui Generis column is visible without horizontal scrolling. Table roles are restored in PHP. */
@media (max-width: 599px) {
	.sg-tableau table {
		min-width: 0;
	}

	.sg-tableau :is(thead, tbody) {
		display: block;
	}

	.sg-tableau tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sg-tableau table :is(th, td):first-child {
		grid-column: 1 / -1;
		width: auto;
	}

	.sg-tableau thead th:first-child {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.sg-tableau thead th {
		display: grid;
		place-content: center;
		height: auto;
		padding: 20px 12px;
		font-size: 15px;
		line-height: 20px;
	}

	.sg-tableau tbody td:first-child {
		padding: 16px 16px 6px;
		font-size: 15px;
	}

	.sg-tableau tbody td:not(:first-child) {
		padding: 10px 12px 14px;
		border-top: 0;
		font-size: 14px;
		line-height: 20px;
	}

	.sg-tableau tbody td:nth-child(2)::before,
	.sg-tableau tbody td:nth-child(3)::before {
		display: block;
		margin: 0 0 6px;
	}
}

.sg-comparatif__relance {
	color: var(--wp--preset--color--gris);
	text-align: center;
}

.sg-comparatif__relance + .wp-block-buttons {
	margin-block-start: 24px !important;
}

/* ---------- Home: how a mission runs ---------- */

.sg-mission h2 {
	color: var(--wp--preset--color--blanc);
	font-size: var(--wp--preset--font-size--affiche);
}

.sg-etapes {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	counter-reset: etape;
}

.sg-etapes > * {
	margin: 0 !important;
}

.sg-etape {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-height: 342px;
	padding: 40px 38px 38px !important;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 12px;
	background: #15233a;
	overflow: hidden;
	counter-increment: etape;
	isolation: isolate;
}

.sg-etape > * {
	margin: 0 !important;
}

/* Large ghost digits behind each step. */
.sg-etape::after {
	content: counter(etape, decimal-leading-zero);
	position: absolute;
	right: 4px;
	bottom: -34px;
	z-index: -1;
	color: rgba(255, 255, 255, 0.08);
	font-size: 160px;
	font-weight: 700;
	line-height: 0.95;
	writing-mode: vertical-rl;
	text-orientation: upright;
	letter-spacing: -0.15em;
}

.sg-etape__numero {
	position: relative;
	display: flex;
	align-items: center;
}

/* Connector from the step label to the next card: a line (after) and its arrowhead (before), both reordered. */
.sg-etape__numero::after {
	content: "";
	order: 2;
	flex: 1;
	height: 2px;
	margin-left: 0;
	background: var(--wp--preset--color--accent);
}

.sg-etape__numero::before {
	content: "";
	order: 3;
	flex: none;
	margin-right: -42px;
	border-block: 7px solid transparent;
	border-left: 12px solid var(--wp--preset--color--accent);
}

.sg-etape:last-child .sg-etape__numero::before,
.sg-etape:last-child .sg-etape__numero::after {
	display: none;
}

.sg-etape__numero mark,
.sg-etape__etiquette {
	padding: 7px 14px;
	border-radius: 2px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--nuit);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	line-height: 1.4;
}

.sg-etape h3 {
	color: var(--wp--preset--color--blanc);
	font-size: 26px;
}

.sg-etape p {
	color: var(--sg-texte-sur-nuit);
	font-size: 16px;
	font-weight: 300;
	line-height: 26px;
}

.sg-etape .sg-pastille {
	margin-top: auto !important;
}

.sg-pastille {
	width: max-content;
	max-width: 100%;
	padding: 2px 11px;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: var(--sg-rayon-pilule);
	color: var(--wp--preset--color--accent) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 20px !important;
	text-transform: uppercase;
}

.sg-mission__note.sg-mission__note {
	max-width: 720px;
}

.sg-mission__note {
	margin-inline: auto;
	color: var(--sg-texte-sur-nuit);
	font-size: 15px;
	font-style: italic;
	font-weight: 300;
	text-align: center;
}

.sg-mission__note + .wp-block-buttons {
	margin-block-start: 40px !important;
}

@media (max-width: 1100px) {
	.sg-etapes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sg-etape:nth-child(2) .sg-etape__numero::after,
	.sg-etape:nth-child(2) .sg-etape__numero::before {
		display: none;
	}
}

@media (max-width: 599px) {
	.sg-etapes {
		grid-template-columns: minmax(0, 1fr);
	}

	.sg-etape {
		min-height: 0;
	}

	.sg-etape .sg-etape__numero::after,
	.sg-etape .sg-etape__numero::before {
		display: none;
	}
}

/* ---------- Home: area ---------- */

.sg-zone__grille {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 550px);
	gap: clamp(32px, 6vw, 90px);
	align-items: center;
}

.sg-zone__grille > * {
	margin: 0 !important;
}

.sg-carte {
	margin: 0;
}

.sg-carte__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.sg-carte__departements path {
	fill: var(--wp--preset--color--accent);
	stroke: var(--wp--preset--color--blanc);
	stroke-width: 1;
	stroke-linejoin: round;
}

.sg-carte__ville {
	cursor: pointer;
	outline: none;
}

.sg-carte__cible {
	fill: transparent;
}

.sg-carte__point {
	fill: var(--wp--preset--color--blanc);
	stroke: var(--wp--preset--color--nuit);
	stroke-width: 0;
	transition: stroke-width 160ms ease-out;
}

.sg-carte__etiquette {
	opacity: 0;
	transition: opacity 160ms ease-out;
	pointer-events: none;
}

.sg-carte__etiquette rect {
	fill: var(--wp--preset--color--nuit);
}

.sg-carte__etiquette text {
	fill: var(--wp--preset--color--blanc);
	font-family: var(--wp--preset--font-family--urbanist);
	font-size: 14px;
	font-weight: 700;
}

.sg-carte__ville:hover .sg-carte__etiquette,
.sg-carte__ville:focus-visible .sg-carte__etiquette {
	opacity: 1;
}

.sg-carte__ville:hover .sg-carte__point,
.sg-carte__ville:focus-visible .sg-carte__point {
	stroke-width: 3;
}

.sg-zone__texte {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sg-zone__texte > * {
	margin: 0 !important;
}

.sg-zone__intro {
	padding-bottom: 24px;
	border-bottom: 1px solid var(--sg-trait);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.6;
}

.sg-zone__intro strong {
	font-weight: 600;
}

.sg-zone__soustitre {
	padding-top: 12px;
	color: var(--wp--preset--color--primaire);
	font-size: 18px;
	font-weight: 600;
}

.sg-atout {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px !important;
	border: 1px solid var(--sg-trait);
	border-radius: 12px;
	background: var(--wp--preset--color--blanc);
}

.sg-atout > * {
	margin: 0 !important;
}

.sg-atout .wp-block-image {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--wp--preset--color--accent);
}

.sg-atout .wp-block-image img {
	width: 22px;
	height: 22px;
}

.sg-atout p {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.sg-zone__action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	padding-top: 14px;
}

.sg-zone__action > * {
	margin: 0 !important;
}

.sg-zone__action p {
	font-size: 13px;
	font-weight: 500;
}

@media (max-width: 899px) {
	.sg-zone__grille {
		grid-template-columns: minmax(0, 1fr);
	}

	.sg-carte {
		max-width: 520px;
		margin-inline: auto;
	}
}

/* ---------- Home: testimonials ---------- */

.sg-temoignages {
	background: var(--wp--preset--color--brume);
}

.sg-temoignages .sg-slider {
	--sg-carte-largeur: 392px;
}

.sg-temoignage {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	padding: 48px clamp(24px, 4vw, 60px) 44px !important;
	border-radius: 10px;
	background: var(--wp--preset--color--blanc);
	text-align: center;
}

.sg-temoignage > * {
	margin: 0 !important;
}

.sg-temoignage .wp-block-quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.sg-temoignage .wp-block-quote p {
	font-size: 15px;
	line-height: 24px;
	color: var(--wp--preset--color--encre);
}

/* Pushed to the bottom of the card, so authors line up across cards of unequal quotes. */
.sg-temoignage .sg-auteur {
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	row-gap: 6px;
	margin-top: auto !important;
	padding-top: 24px;
}

.sg-temoignage .sg-auteur__initiales {
	grid-row: auto;
	width: 54px;
	height: 54px;
	font-size: 16px;
}

/* ---------- Home: FAQ ---------- */

.sg-faq__grille {
	display: grid;
	grid-template-columns: minmax(0, 724fr) minmax(0, 432fr);
	gap: clamp(32px, 4vw, 52px);
	align-items: center;
}

.sg-faq__grille > * {
	margin: 0 !important;
}

.sg-faq__liste > * {
	margin: 0 !important;
}

.sg-question {
	border-bottom: 1px solid #d8dbe0;
}

.sg-question summary {
	position: relative;
	display: block;
	padding: 36px 70px 36px 25px;
	cursor: pointer;
	list-style: none;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.15em;
	line-height: 24px;
	text-transform: uppercase;
	color: var(--wp--preset--color--encre);
}

.sg-question summary::-webkit-details-marker {
	display: none;
}

.sg-question summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 25px;
	width: 26px;
	height: 26px;
	margin-top: -13px;
	background: currentColor;
	-webkit-mask: url("../icons/plus.svg") center / contain no-repeat;
	mask: url("../icons/plus.svg") center / contain no-repeat;
}

.sg-question[open] {
	background: var(--wp--preset--color--accent);
	border-bottom-color: var(--wp--preset--color--accent);
}

.sg-question[open] summary {
	padding-bottom: 16px;
}

.sg-question[open] summary::after {
	-webkit-mask-image: url("../icons/minus.svg");
	mask-image: url("../icons/minus.svg");
}

.sg-question > :not(summary) {
	margin: 0;
	padding: 0 70px 28px 25px;
	font-size: 16px;
	line-height: 28px;
	color: var(--wp--preset--color--encre);
}

.sg-faq__texte {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sg-faq__texte > * {
	margin: 0 !important;
}

.sg-faq__texte > .wp-block-buttons {
	margin-top: 26px !important;
}

.sg-faq__texte h2 {
	font-size: var(--wp--preset--font-size--titre-encart);
}

.sg-faq__texte p:not(.sg-surtitre) {
	line-height: 2.2;
}

@media (max-width: 899px) {
	.sg-faq__grille {
		grid-template-columns: minmax(0, 1fr);
	}

	.sg-faq__texte {
		order: -1;
	}

	.sg-question summary {
		padding: 24px 56px 24px 16px;
		letter-spacing: 0.08em;
	}

	.sg-question summary::after {
		right: 16px;
	}

	.sg-question > :not(summary) {
		padding: 0 16px 24px;
	}
}

/* ---------- Contact form section ---------- */

.sg-contact {
	background: linear-gradient(to bottom, var(--wp--preset--color--brume) 0 70%, var(--wp--preset--color--nuit) 70%);
	padding-bottom: 0 !important;
}

/* Doubled class: the constrained layout prints its own max-width after this stylesheet. */
.sg-contact .sg-contact__carte.sg-contact__carte {
	max-width: 752px;
	margin-inline: auto;
	padding: 40px clamp(20px, 9vw, 68px) 40px !important;
	border-radius: 10px;
	background: var(--wp--preset--color--blanc);
	box-shadow: var(--wp--preset--shadow--carte);
}

.sg-contact__carte > * {
	margin: 0 !important;
}

.sg-contact__carte h2 {
	color: var(--wp--preset--color--encre);
	text-align: center;
}

.sg-contact__intro {
	margin-bottom: 32px !important;
	text-align: center;
	line-height: 1.4;
}

.sg-contact__reassurance {
	margin-top: 14px !important;
	color: var(--wp--preset--color--gris);
	font-size: 14px;
	text-align: center;
}

/* JetFormBuilder fields, styled to the mockup. */
.sg-contact__carte .jet-form-builder {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.sg-contact__carte .jet-form-builder > :where(.field-type-select-field, .field-type-textarea-field, .field-type-checkbox-field, .field-type-submit-field, .jet-form-builder-messages-wrap, .sg-formulaire__altcha) {
	grid-column: 1 / -1;
}

/* ALTCHA loads on the first contact with the form: its measured 75 px stay reserved until then, so nothing moves. */
.sg-formulaire__altcha altcha-widget:not(:defined) {
	display: block;
	min-height: 75px;
}

/* JetFormBuilder rows are horizontal flex boxes: the label and the field would sit side by side and overflow. */
.sg-contact__carte .jet-form-builder-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 6px;
	margin: 0;
	padding: 0;
}

.sg-contact__carte .jet-form-builder-row > * {
	width: 100%;
}

.sg-contact__carte .field-type-submit-field {
	justify-items: center;
}

.sg-contact__carte .field-type-submit-field > * {
	width: auto;
}

.sg-contact__carte .for-checkbox {
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.4;
}

/* JetFormBuilder hides the native box and draws this one; unchecked, its border is its only edge. */
.sg-contact__carte .for-checkbox > input:not(:checked) + span::before {
	border-color: #8a8f98;
}

/* Checked: the site's petrol under JetFormBuilder's white tick (6.2:1), instead of its default blue. Doubled class:
   the plugin's rule weighs four classes. */
.sg-contact__carte .for-checkbox.for-checkbox > input:checked + span::before {
	border-color: var(--wp--preset--color--primaire);
	background-color: var(--wp--preset--color--primaire);
}

.sg-contact__carte :where(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	width: 100%;
	min-height: 52px;
	padding: 12px 15px;
	/* The border is the field's only edge on the white card: 3:1 minimum (WCAG 1.4.11). */
	border: 1px solid #8a8f98;
	border-radius: 5px;
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--encre);
	font: inherit;
	font-size: 16px;
}

.sg-contact__carte textarea {
	min-height: 103px;
	resize: vertical;
}

.sg-contact__carte :where(input, select, textarea):focus {
	border-color: var(--wp--preset--color--primaire);
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 0;
}

.sg-contact__carte .jet-form-builder__label-text {
	font-size: 15px;
	font-weight: 500;
}

.sg-contact__carte .jet-form-builder__required {
	color: var(--wp--preset--color--erreur);
}

/* .checkradio-field variant: JetFormBuilder sets width: auto on its own checkboxes with a higher specificity. */
.sg-contact__carte input[type="checkbox"],
.sg-contact__carte .jet-form-builder__field.checkradio-field[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--wp--preset--color--accent);
}

.sg-contact__carte .jet-form-builder__submit-wrap {
	justify-content: center;
	margin-top: 24px;
}

.sg-contact__carte .jet-form-builder__submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 12px 25px;
	border: 0;
	border-radius: var(--sg-rayon-pilule);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--encre);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.sg-contact__carte .jet-form-builder__submit:hover {
	background: var(--wp--preset--color--nuit);
	color: var(--wp--preset--color--blanc);
}

@media (max-width: 599px) {
	.sg-contact__carte .jet-form-builder {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Footer ---------- */

.sg-pied {
	padding-top: clamp(56px, 6vw, 70px);
	padding-bottom: 32px;
	margin-block-start: 0 !important;
	font-size: 14px;
	line-height: 22px;
}

.sg-pied a {
	color: inherit;
	text-decoration: none;
}

.sg-pied a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

/* The root block gap would otherwise leave a white strip between the last section and the footer. */
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}

.sg-pied__colonnes {
	gap: clamp(24px, 5vw, 80px);
}

/* Column split of the mockup; the contact column is wide enough for the full e-mail address. */
@media (min-width: 1100px) {
	.sg-pied__colonnes.wp-block-columns {
		display: grid;
		grid-template-columns: minmax(0, 300fr) minmax(0, 170fr) minmax(0, 280fr) minmax(0, 290fr);
		gap: 60px;
	}
}

@media (min-width: 782px) and (max-width: 1099px) {
	.sg-pied__colonnes.wp-block-columns {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 60px;
	}
}

.sg-pied__colonnes > * > * + * {
	margin-block-start: 16px;
}

.sg-pied__embleme {
	margin-bottom: 26px !important;
}

.sg-pied__nom.sg-pied__nom {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.sg-pied__texte {
	max-width: 320px;
	color: var(--sg-texte-sur-nuit);
	font-weight: 300;
}

.sg-pied__titre {
	margin-top: 0;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.sg-pied__marque .sg-pied__titre {
	margin-top: 40px !important;
}

.sg-pied__nav.sg-pied__nav {
	gap: 8px;
	color: var(--sg-texte-sur-nuit);
}

.sg-pied__reseaux.sg-pied__reseaux .wp-block-social-link.wp-social-link {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid currentColor;
	border-radius: 50%;
}

.sg-pied__reseaux.sg-pied__reseaux .wp-block-social-link.wp-social-link:hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.sg-coordonnees.sg-coordonnees {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--sg-texte-sur-nuit);
}

.sg-coordonnees li {
	position: relative;
	padding-left: 26px;
}

.sg-coordonnees li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 16px;
	height: 16px;
	background: var(--wp--preset--color--accent);
	-webkit-mask: var(--sg-puce) center / contain no-repeat;
	mask: var(--sg-puce) center / contain no-repeat;
}

.sg-coordonnees__adresse {
	--sg-puce: url("../icons/map-pin-fill.svg");
}

.sg-coordonnees__telephone {
	--sg-puce: url("../icons/phone-fill.svg");
}

.sg-coordonnees__email {
	--sg-puce: url("../icons/envelope-simple-fill.svg");
	overflow-wrap: anywhere;
}

.sg-coordonnees__horaires {
	--sg-puce: url("../icons/clock-fill.svg");
}

.sg-pied__bas.sg-pied__bas {
	margin-top: 56px !important;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	gap: 8px 28px;
	font-size: 14px;
}

.sg-pied__bas > * {
	margin: 0 !important;
}

@media (max-width: 781px) {
	.sg-pied__marque .sg-pied__titre {
		margin-top: 24px !important;
	}
}

/* ---------- Inner content ---------- */

.sg-contenu h2 {
	margin-top: 2em;
	font-size: var(--wp--preset--font-size--titre-encart);
}

.sg-contenu h3 {
	font-size: var(--wp--preset--font-size--grand);
}

.sg-contenu p,
.sg-contenu li {
	font-size: 17px;
}

.sg-contenu h2:first-child {
	margin-top: 0;
}

.sg-appel {
	padding-block: var(--wp--preset--spacing--60);
	text-align: center;
}

.sg-appel > * {
	margin-inline: auto;
}

.sg-articles {
	padding-block: var(--wp--preset--spacing--60);
}

.sg-article-carte {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	padding: 0 0 24px !important;
	border-radius: var(--sg-rayon-carte);
	background: var(--wp--preset--color--brume);
	overflow: hidden;
}

.sg-article-carte > * {
	margin: 0 !important;
	padding-inline: 24px;
}

.sg-article-carte .wp-block-post-featured-image {
	padding: 0;
}

.sg-article-carte :is(h2, h3) a {
	text-decoration: none;
	color: var(--wp--preset--color--nuit);
}

/* ---------- Article (single) ---------- */

/* Banner text starts with the reading column of the 1120 px article grid below. */
.sg-bandeau-page--article {
	--sg-bandeau-colonne: 1120px;
}

.sg-ariane {
	font-size: 14px;
	font-weight: 500;
}

.sg-ariane a {
	color: inherit;
	text-decoration: none;
}

.sg-ariane a:hover {
	text-decoration: underline;
}

.sg-article__meta.sg-article__meta {
	gap: 8px 28px;
	margin-top: 24px !important;
	font-size: 15px;
	font-weight: 500;
}

.sg-article__meta > *,
.sg-article__date > * {
	margin: 0 !important;
}

.sg-article__date.sg-article__date {
	gap: 0.3em;
}

.sg-article__auteur a {
	color: inherit;
	text-underline-offset: 3px;
}

/* Reading column and side column; the side column disappears below 1100 px. */
.sg-article.sg-article {
	display: grid;
	grid-template-columns: minmax(0, 720px) 320px;
	justify-content: space-between;
	gap: 64px 80px;
	max-width: 1120px;
	padding-block: 64px 96px;
}

.sg-article.sg-article > * {
	margin-block: 0 !important;
}

.sg-article__corps.sg-article__corps {
	display: flex;
	flex-direction: column;
	gap: 40px;
	min-width: 0;
}

.sg-article__corps > * {
	margin: 0 !important;
}

.sg-article-image img {
	border-radius: var(--sg-rayon-carte);
}

.sg-article__colle.sg-article__colle {
	position: sticky;
	top: calc(32px + var(--wp-admin--admin-bar--height, 0px));
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.sg-article__colle > * {
	margin: 0 !important;
}

.sg-contenu h2 {
	scroll-margin-top: 32px;
}

@media (max-width: 1099px) {
	.sg-bandeau-page--article {
		--sg-bandeau-colonne: 720px;
	}

	.sg-article.sg-article {
		grid-template-columns: minmax(0, 1fr);
		max-width: 720px;
		padding-block: 40px 72px;
	}

	.sg-article__aside {
		display: none;
	}
}

@media (min-width: 1100px) {
	.sg-sommaire--repliable {
		display: none;
	}
}

/* A short window cannot hold the table of contents and the card: the column then scrolls with the page. */
@media (max-height: 699px) {
	.sg-article__colle.sg-article__colle {
		position: static;
	}
}

/* Small labels of the article components. */
.sg-sommaire__titre.sg-sommaire__titre,
.sg-auteur-article__etiquette.sg-auteur-article__etiquette,
.sg-a-retenir .sg-a-retenir__titre,
.sg-service-lie .sg-service-lie__etiquette {
	margin: 0;
	color: var(--wp--preset--color--primaire);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 18px;
	text-transform: uppercase;
}

/* Table of contents. */
.sg-sommaire__liste {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 12px 0 0;
	padding: 0;
	border-left: 1px solid var(--sg-trait);
	list-style: none;
}

.sg-sommaire__liste a {
	position: relative;
	display: block;
	padding: 7px 0 7px 18px;
	color: var(--wp--preset--color--gris);
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
	transition: color 150ms ease-out;
}

.sg-sommaire__liste a:hover {
	color: var(--wp--preset--color--nuit);
	text-decoration: underline;
}

.sg-sommaire__liste a[aria-current="true"] {
	color: var(--wp--preset--color--primaire);
	font-weight: 600;
}

/* The section being read is marked by a turquoise square on the rail, the site's geometric motif. */
.sg-sommaire__liste a[aria-current="true"]::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -4px;
	width: 7px;
	height: 7px;
	margin-top: -4px;
	background: var(--wp--preset--color--accent);
}

.sg-sommaire--repliable {
	border: 1px solid var(--sg-trait);
	border-radius: 16px;
}

.sg-sommaire--repliable summary {
	position: relative;
	display: block;
	padding: 16px 56px 16px 20px;
	cursor: pointer;
	list-style: none;
}

.sg-sommaire--repliable summary::-webkit-details-marker {
	display: none;
}

.sg-sommaire--repliable summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	background: currentColor;
	-webkit-mask: url("../icons/plus.svg") center / contain no-repeat;
	mask: url("../icons/plus.svg") center / contain no-repeat;
}

.sg-sommaire--repliable[open] summary::after {
	-webkit-mask-image: url("../icons/minus.svg");
	mask-image: url("../icons/minus.svg");
}

.sg-sommaire--repliable .sg-sommaire__nav {
	padding: 0 20px 16px;
}

.sg-sommaire--repliable .sg-sommaire__liste {
	margin-top: 0;
}

/* Side contact card. */
.sg-carte-contact.sg-carte-contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 32px 28px !important;
	border-radius: var(--sg-rayon-carte);
}

.sg-carte-contact > * {
	margin: 0 !important;
}

.sg-carte-contact .sg-carte-contact__titre {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

.sg-carte-contact p:not(.sg-carte-contact__titre) {
	color: var(--sg-texte-sur-nuit);
	font-size: 15px;
	line-height: 1.6;
}

.sg-carte-contact .wp-block-buttons {
	margin-top: 8px !important;
}

/* Full width, tighter tracking: the label holds on one line in the 264 px of the card. */
.sg-carte-contact .wp-block-button {
	width: 100%;
}

.sg-carte-contact .wp-block-button__link {
	width: 100%;
	justify-content: center;
	padding-inline: 18px;
	font-size: 13px;
	letter-spacing: 0.12em;
}

/* The default hover and focus colours are the card's own navy: inverted here. */
.sg-carte-contact .wp-block-button__link:hover {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--encre);
}

.sg-carte-contact .wp-block-button__link:focus-visible {
	outline-color: var(--wp--preset--color--blanc);
}

/* Key points at the top of the article; doubled class rather than .sg-contenu, which the post editor does not have. */
.sg-a-retenir.sg-a-retenir {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-block: 32px !important;
	padding: 28px 32px !important;
	border-radius: var(--sg-rayon-carte);
	background: var(--wp--preset--color--lagon);
}

.sg-a-retenir > * {
	margin: 0 !important;
}

.sg-a-retenir .wp-block-list {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}

/* Same check bullet as the service pages' "En bref". */
.sg-a-retenir .wp-block-list li {
	position: relative;
	padding-left: 30px;
	font-weight: 500;
}

.sg-a-retenir .wp-block-list li::before {
	content: "";
	position: absolute;
	top: 5px;
	left: 0;
	width: 18px;
	height: 18px;
	background: url("../images/check-circle.svg?ver=20261016") center / contain no-repeat;
}

/* Related service at the end of the article. */
.sg-service-lie.sg-service-lie {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 48px !important;
	padding: 28px 32px !important;
	border: 1px solid var(--sg-trait);
	border-radius: var(--sg-rayon-carte);
}

.sg-service-lie > * {
	margin: 0 !important;
}

.sg-service-lie .sg-service-lie__titre {
	color: var(--wp--preset--color--nuit);
	font-size: var(--wp--preset--font-size--titre-carte);
	font-weight: 600;
	line-height: 1.3;
}

.sg-service-lie .wp-block-buttons {
	margin-top: 8px !important;
}

/* On phones "L’ACCOMPAGNEMENT" is wider than the room the card leaves its button, and the core button style
   (word-break: break-word) then splits it mid-word: thinner card sides and tighter tracking keep it whole from 320 px. */
@media (max-width: 599px) {
	.sg-service-lie.sg-service-lie {
		padding-inline: 20px !important;
	}

	.sg-service-lie .wp-block-button__link {
		padding-inline: 16px;
		letter-spacing: 0.1em;
	}
}

/* Author box, the same identity component as the testimonials. */
.sg-auteur-article.sg-auteur-article {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 40px;
	border-top: 1px solid var(--sg-trait);
}

.sg-auteur-article > * {
	margin: 0 !important;
}

.sg-auteur-article .sg-auteur.sg-auteur {
	margin-top: 0 !important;
}

.sg-auteur-article p:not([class]) {
	font-size: 16px;
	line-height: 1.7;
}

.sg-auteur-article__liens {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	font-weight: 600;
}

.sg-auteur-article__liens a {
	color: var(--wp--preset--color--primaire);
	text-underline-offset: 3px;
}

/* "Read also" reuses the blog card unchanged; with fewer than three posts the cards stay centred instead of hugging the left. */
.sg-a-lire-aussi .sg-articles {
	padding-block: 0;
}

.sg-a-lire-aussi .wp-block-post-template.wp-block-post-template {
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 380px));
	justify-content: center;
}

/* Section headings whose turquoise bar sits elsewhere (under the intro) or nowhere. */
.sg-titre-section--sans-trait::after {
	display: none;
}

.sg-intro--trait::after {
	content: "";
	display: block;
	margin: 16px auto 0;
	width: 80px;
	height: 4px;
	border-radius: 2px;
	background: var(--wp--preset--color--accent);
}

.sg-formulaire-indisponible {
	padding: 16px 20px;
	border-radius: 8px;
	background: #fdecea;
	color: var(--wp--preset--color--erreur);
	font-weight: 600;
}

/* ---------- Contact page ---------- */

.sg-coordonnees.sg-coordonnees--clair {
	color: var(--wp--preset--color--encre);
	font-size: 17px;
	line-height: 1.5;
}

.sg-coordonnees--clair li::before {
	background: var(--wp--preset--color--primaire);
	top: 4px;
}

.sg-carte-google {
	display: grid;
	min-height: 360px;
	border-radius: var(--sg-rayon-carte);
	overflow: hidden;
	background: var(--wp--preset--color--brume);
}

.sg-carte-google__invite {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 32px;
	text-align: center;
}

.sg-carte-google__invite > * {
	margin: 0;
}

.sg-carte-google__adresse {
	color: var(--wp--preset--color--nuit);
	font-size: 20px;
	font-weight: 700;
}

.sg-carte-google__lien {
	font-size: 14px;
}

.sg-carte-google__cadre {
	width: 100%;
	height: 100%;
	min-height: 360px;
	border: 0;
}

.sg-opposition {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 24px;
	border-radius: 12px;
	background: var(--wp--preset--color--brume);
}

.sg-opposition > * {
	margin: 0;
}

/* ---------- Service pages ---------- */

.sg-bandeau-service {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	/* The parent already carries the root padding, hence the gutter added on top of it beyond the wide grid. */
	padding: clamp(150px, 14vw, 190px) calc(var(--wp--style--root--padding-right) + max(0px, (100% - var(--wp--style--global--wide-size)) / 2)) clamp(56px, 6vw, 90px) calc(var(--wp--style--root--padding-left) + max(0px, (100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-block-start: 0 !important;
}

/* A starter's image left empty prints nothing: the banner falls back to one column, as without a visual. */
.sg-bandeau-service--sans-visuel,
.sg-bandeau-service:not(:has(> .sg-bandeau-service__visuel)) {
	grid-template-columns: minmax(0, 1fr);
}

.sg-bandeau-service > * {
	margin: 0 !important;
}

.sg-bandeau-service__texte {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 700px;
}

.sg-bandeau-service__texte > * {
	margin: 0 !important;
}

.sg-bandeau-service h1 {
	color: var(--wp--preset--color--blanc);
	font-size: var(--wp--preset--font-size--titre-page);
	line-height: 1.08;
}

.sg-bandeau-service__sous-titre {
	font-size: var(--wp--preset--font-size--moyen);
	font-weight: 500;
	line-height: 1.5;
}

.sg-bandeau-service__visuel img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--sg-rayon-encart);
}

.sg-bandeau-service__texte > .sg-reassurances {
	margin-top: 6px !important;
}

.sg-reassurances {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.sg-reassurances li {
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--sg-rayon-pilule);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

@media (max-width: 899px) {
	.sg-bandeau-service {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 130px !important;
	}
}

.sg-bref {
	font-size: 18px;
}

.sg-bref .wp-block-list {
	display: grid;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.sg-bref .wp-block-list li,
.sg-livrables li {
	position: relative;
	padding-left: 30px;
	font-weight: 500;
}

.sg-bref .wp-block-list li::before,
.sg-livrables li::before {
	content: "";
	position: absolute;
	top: 5px;
	left: 0;
	width: 18px;
	height: 18px;
	background: url("../images/check-circle.svg?ver=20261016") center / contain no-repeat;
}

.sg-livrables {
	display: grid;
	gap: 12px;
	padding: 0;
	list-style: none;
}

.sg-situations-service {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.sg-situations-service > * {
	margin: 0 !important;
}

.sg-situations-service .sg-encart {
	padding: 36px 32px !important;
	border-radius: var(--sg-rayon-carte);
}

.sg-situations-service .sg-encart h3 {
	font-size: var(--wp--preset--font-size--titre-carte);
	color: inherit;
}

.sg-encart--0 {
	background: var(--wp--preset--color--primaire);
	color: var(--wp--preset--color--blanc);
}

.sg-encart--1 {
	background: var(--wp--preset--color--brume);
}

.sg-encart--1 h3 {
	color: var(--wp--preset--color--primaire) !important;
}

.sg-encart--2 {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--nuit);
}

.sg-etapes--5,
.sg-etapes--6 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sg-etapes--5 .sg-etape:nth-child(3) .sg-etape__numero::before,
.sg-etapes--5 .sg-etape:nth-child(3) .sg-etape__numero::after,
.sg-etapes--6 .sg-etape:nth-child(3) .sg-etape__numero::before,
.sg-etapes--6 .sg-etape:nth-child(3) .sg-etape__numero::after {
	display: none;
}

.sg-service-approche .sg-intro {
	color: var(--sg-texte-sur-nuit);
}

.sg-format {
	gap: clamp(32px, 6vw, 90px);
}

.sg-format h2 {
	font-size: var(--wp--preset--font-size--titre-encart);
}

.sg-cas-grille {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.sg-cas-grille > * {
	margin: 0 !important;
}

.sg-cas {
	min-height: 0;
	background: var(--wp--preset--color--blanc);
}

.sg-cas h3 {
	font-size: 20px;
	line-height: 1.35;
}

@media (max-width: 1023px) {
	.sg-situations-service,
	.sg-cas-grille,
	.sg-etapes--5,
	.sg-etapes--6 {
		grid-template-columns: minmax(0, 1fr);
	}

	.sg-etapes--5 .sg-etape__numero::before,
	.sg-etapes--5 .sg-etape__numero::after,
	.sg-etapes--6 .sg-etape__numero::before,
	.sg-etapes--6 .sg-etape__numero::after {
		display: none;
	}
}

.sg-image-arrondie img {
	width: 100%;
	height: auto;
	border-radius: var(--sg-rayon-carte);
}

.sg-contenu p.sg-chapo {
	font-size: var(--wp--preset--font-size--moyen);
	font-weight: 500;
	line-height: 1.6;
}


/* Links inside coloured cards take the card text colour, underlined. */
.sg-encart a,
.sg-domaine p a,
.has-nuit-background-color .sg-intro a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sg-section.has-nuit-background-color a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--accent);
}

.sg-pied__bas a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Motion ---------- */

/* One authored moment (the hero entrance), a sequence that explains (the mission steps), two photo reveals,
   then feedback on press, hover, disclosure and the mobile menu. Only transform, opacity and clip-path move.
   Reduced motion keeps the fades and drops the movement and the scroll reveals. */

@keyframes sg-monte {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

@keyframes sg-monte-court {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

@keyframes sg-apparait {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
}

@keyframes sg-pose {
	from {
		transform: scale(1.04);
	}
}

@keyframes sg-deplie {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

@keyframes sg-tourne {
	from {
		transform: rotate(-90deg);
	}
}

@keyframes sg-fondu {
	from {
		opacity: 0;
	}
}

/* Hero entrance, once per load and never in the editor canvas. The photo settles in scale without fading:
   it is the largest paint of the page. */
.sg-hero__photo {
	overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
	body:not(.editor-styles-wrapper) .sg-hero__texte > * {
		animation: sg-monte 560ms var(--sg-ease-out) backwards;
	}

	body:not(.editor-styles-wrapper) .sg-hero__texte > :nth-child(2) {
		animation-delay: 60ms;
	}

	body:not(.editor-styles-wrapper) .sg-hero__texte > :nth-child(3) {
		animation-delay: 120ms;
	}

	body:not(.editor-styles-wrapper) .sg-hero__texte > :nth-child(4) {
		animation-delay: 180ms;
	}

	body:not(.editor-styles-wrapper) .sg-hero__portrait {
		animation: sg-apparait 600ms var(--sg-ease-out) 200ms backwards;
	}

	body:not(.editor-styles-wrapper) .sg-hero__photo img {
		animation: sg-pose 1200ms var(--sg-ease-out);
	}
}

@media (prefers-reduced-motion: reduce) {
	body:not(.editor-styles-wrapper) .sg-hero__texte > * {
		animation: sg-fondu 300ms ease;
	}
}

/* Scroll reveals driven by assets/js/motion.js: it adds .sg-attend to the elements still below the fold when
   motion is allowed, then .sg-revele once they enter the viewport. Without the script everything stays visible. */
.sg-etape:nth-child(2) {
	--sg-rang: 1;
}

.sg-etape:nth-child(3) {
	--sg-rang: 2;
}

.sg-etape:nth-child(4) {
	--sg-rang: 3;
}

.sg-etape:nth-child(5) {
	--sg-rang: 4;
}

.sg-etape:nth-child(6) {
	--sg-rang: 5;
}

.sg-etapes.sg-attend > .sg-etape {
	opacity: 0;
	transform: translateY(16px);
}

.sg-etapes.sg-attend .sg-etape__numero::after {
	transform: scaleX(0);
	transform-origin: left center;
}

.sg-etapes.sg-attend .sg-etape__numero::before {
	opacity: 0;
}

.sg-etapes.sg-revele > .sg-etape {
	opacity: 1;
	transform: none;
	transition: opacity 500ms var(--sg-ease-out), transform 500ms var(--sg-ease-out);
	transition-delay: calc(var(--sg-rang, 0) * 80ms);
}

/* Each connector draws itself toward the next step once its own card has landed. */
.sg-etapes.sg-revele .sg-etape__numero::after {
	transform: none;
	transition: transform 400ms var(--sg-ease-out) calc(var(--sg-rang, 0) * 80ms + 300ms);
}

.sg-etapes.sg-revele .sg-etape__numero::before {
	opacity: 1;
	transition: opacity 150ms ease calc(var(--sg-rang, 0) * 80ms + 650ms);
}

/* The image is clipped, not its figure: Chrome reports a target clipped by its own clip-path as never
   intersecting, so the observer would wait forever. */
.sg-attend:is(.sg-situations__photo, .sg-image-arrondie) img {
	clip-path: inset(100% 0 0 0);
}

.sg-revele:is(.sg-situations__photo, .sg-image-arrondie) img {
	clip-path: inset(0);
	transition: clip-path 700ms var(--sg-ease-out);
}

/* Form success: the confirmation settles in instead of popping. */
@media (prefers-reduced-motion: no-preference) {
	.jet-form-builder-message--success {
		animation: sg-apparait 300ms var(--sg-ease-out);
	}
}

@media (prefers-reduced-motion: reduce) {
	.jet-form-builder-message--success {
		animation: sg-fondu 200ms ease;
	}
}

/* Disclosures (FAQ, collapsible table of contents): the answer slides in and the sign turns into a minus.
   Height stays instant: animating it would trigger layout. */
.sg-question {
	transition: background-color 200ms ease;
}

@media (prefers-reduced-motion: no-preference) {
	:is(.sg-question, .sg-sommaire--repliable)[open] > :not(summary) {
		animation: sg-deplie 220ms var(--sg-ease-out);
	}

	:is(.sg-question, .sg-sommaire--repliable)[open] > summary::after {
		animation: sg-tourne 220ms var(--sg-ease-out);
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(.sg-question, .sg-sommaire--repliable)[open] > :not(summary) {
		animation: sg-fondu 200ms ease;
	}
}

/* Service cards: the title link covers the whole card on the front (the editor keeps each block clickable),
   and a mouse hover lifts the card while a pseudo-element shadow fades in. */
.sg-domaine {
	position: relative;
	isolation: isolate;
}

body:not(.editor-styles-wrapper) .sg-domaine h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.sg-domaine .wp-block-buttons {
	position: relative;
	z-index: 1;
}

.sg-domaine::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	box-shadow: 0 12px 24px -12px rgba(13, 16, 45, 0.5);
	opacity: 0;
	transition: opacity 200ms ease;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	body:not(.editor-styles-wrapper) .sg-domaine:hover::before {
		opacity: 1;
	}
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.sg-domaine {
		transition: transform 200ms var(--sg-ease-out);
	}

	body:not(.editor-styles-wrapper) .sg-domaine:hover {
		transform: translateY(-3px);
	}
}

/* Mobile menu: the entries rise one after the other as the overlay opens. */
@media (prefers-reduced-motion: no-preference) {
	.sg-nav .is-menu-open :is(.wp-block-navigation__container > li, .sg-nav__cta) {
		animation: sg-monte-court 240ms var(--sg-ease-out) backwards;
	}

	.sg-nav .is-menu-open .wp-block-navigation__container > li:nth-child(2) {
		animation-delay: 30ms;
	}

	.sg-nav .is-menu-open .wp-block-navigation__container > li:nth-child(3) {
		animation-delay: 60ms;
	}

	.sg-nav .is-menu-open .wp-block-navigation__container > li:nth-child(4) {
		animation-delay: 90ms;
	}

	.sg-nav .is-menu-open .wp-block-navigation__container > li:nth-child(5) {
		animation-delay: 120ms;
	}

	.sg-nav .is-menu-open .sg-nav__cta.sg-nav__cta {
		animation-delay: 150ms;
	}

	.sg-nav .is-menu-open .wp-block-navigation__container:has(.sg-nav__coordonnee) > li {
		animation-delay: 180ms;
	}
}

/* ---------- Touch screens ---------- */

/* 44 px targets for a finger, without changing the mouse layout: buttons, header, footer menus,
   social link, slider arrows, breadcrumbs and standalone links. */
@media (pointer: coarse) {
	.wp-block-button__link {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
	}

	.sg-logo .custom-logo-link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.sg-pied__nav.sg-pied__nav {
		gap: 0;
	}

	.sg-pied__nav .wp-block-navigation-item__content {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.sg-pied__reseaux.sg-pied__reseaux .wp-block-social-link.wp-social-link {
		width: 44px;
		height: 44px;
	}

	.sg-pied__reseaux .wp-social-link a {
		display: grid;
		place-items: center;
		width: 100%;
		height: 100%;
	}

	.sg-slider__bouton {
		width: 44px;
		height: 44px;
	}

	.sg-ariane a,
	.sg-auteur-article__liens a,
	.sg-carte-google__lien,
	.wp-block-post-excerpt__more-link {
		display: inline-block;
		padding-block: 10px;
	}

	.sg-contact__carte input[type="checkbox"],
	.sg-contact__carte .jet-form-builder__field.checkradio-field[type="checkbox"] {
		flex: none;
		width: 22px;
		height: 22px;
	}

	.sg-coordonnees a {
		display: inline-block;
		padding-block: 12px;
	}

	.sg-carte-google button {
		min-height: 44px;
	}
}
