/* ==========================================================================
   SSM – Bergues : styles du site (front + éditeur)
   Valeurs reprises de la maquette « Accueil C v2 – Immersion ». Bascule mobile : 1100 px.
   ========================================================================== */

/* ---------- Polices auto-hébergées ---------- */
@font-face {
	font-family: "Mulish";
	src: url("../fonts/mulish-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Jetons de design ---------- */
:root {
	--ssm-ink: #2A2522;          /* Bergues : brun encre (maquette) */
	--ssm-green: #A45A38;        /* terre cuite (maquette #B5643F assombri : blanc dessus AA 5.1) */
	--ssm-green-dark: #8A4A2E;   /* terre cuite foncée : fonds avec texte + liens (AA) */
	--ssm-cream: #F6F2EC;
	--ssm-gold: #D9966E;         /* terre cuite claire : fonds avec texte encre (AA 6.5) */
	--ssm-sand: #F3DCC8;         /* accent clair sur fonds sombres */
	--ssm-beige: #EEE8E1;
	--ssm-line: #E4DBD1;
	--ssm-muted: #5A4E48;
	--ssm-muted2: #6E5548;
	--ssm-gold-dark: #9A5333;    /* texte d'accent sur crème (AA 5.1) */
	--ssm-display: "Familjen Grotesk", "Mulish", system-ui, sans-serif;
	--ssm-font: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ssm-script: "Caveat", cursive; /* petits mots manuscrits (maquette) */
	--ssm-gutter: clamp(20px, 5vw, 56px);
	--ssm-ease: cubic-bezier(.2, .8, .2, 1);
	/* Kadence : palette et typographie alignées sur la maquette. */
	--global-palette1: #8A4A2E;
	--global-palette2: #2A2522;
	--global-palette3: #2A2522;
	--global-palette4: #3A2D28;
	--global-palette5: #5A4E48;
	--global-palette6: #6E5548;
	--global-palette7: #EEE8E1;
	--global-palette8: #F6F2EC;
	--global-palette9: #FFFFFF;
	--global-body-font-family: var(--ssm-font);
	--global-heading-font-family: var(--ssm-display);
	--global-primary-nav-font-family: var(--ssm-font);
}

html { scroll-behavior: smooth; }
html.ssm-lock { overflow: hidden; }
body.ssm,
.editor-styles-wrapper {
	margin: 0;
	background: var(--ssm-cream);
	color: var(--ssm-ink);
	font-family: var(--ssm-font);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
body.ssm { overflow-x: clip; }
:is(.ssm, .editor-styles-wrapper) *, :is(.ssm, .editor-styles-wrapper) *::before, :is(.ssm, .editor-styles-wrapper) *::after,
.editor-styles-wrapper [class*="ssm-"], .editor-styles-wrapper [class*="ssm-"] * { box-sizing: border-box; }
:is(.ssm, .editor-styles-wrapper) #wrapper, :is(.ssm, .editor-styles-wrapper) .site { background: var(--ssm-cream); }

/* Neutralisation des zones Kadence remplacées par l'extension. */
:is(.ssm, .editor-styles-wrapper) .entry-hero-container-inner,
:is(.ssm, .editor-styles-wrapper) .entry-hero,
:is(.ssm, .editor-styles-wrapper) .page-title.entry-header,
:is(.ssm, .editor-styles-wrapper) .archive-title,
:is(.ssm, .editor-styles-wrapper) .site-header-wrap,
:is(.ssm, .editor-styles-wrapper) #mobile-drawer,
:is(.ssm, .editor-styles-wrapper) .site-footer-wrap { display: none !important; }
.ssm.ssm-is-home .content-area,
.ssm.ssm-has-ph .content-area { margin: 0; }
:is(.ssm, .editor-styles-wrapper) .content-container.site-container { max-width: none; padding: 0; }
.ssm.ssm-is-home .entry-content > * { margin: 0; }
.ssm.ssm-is-home .entry-content-wrap { margin: 0; padding: 0; }
/* Marges Kadence des contenus (.single-content p, h2…) neutralisées dans les composants. */
.ssm .single-content :is(.ssm-hero, .ssm-info, .ssm-terr, .ssm-social, .ssm-tiles-wrap, .ssm-list, .ssm-card) :is(p, h2, h3, ul, ol, figure, form) { margin-top: 0; margin-bottom: 0; }
.ssm .single-content :is(ul, ol)[class*="ssm-"]:not(.ssm-etapes) { padding-left: 0; list-style: none; }
.ssm .single-content :is(ul, ol)[class*="ssm-"]:not(.ssm-etapes) > li { margin: 0; }
.ssm .single-content .ssm-hero .ssm-hero__sub { margin-top: clamp(8px, 1.4vw, 16px); }
.ssm .single-content .ssm-hero .ssm-hero__search { margin-top: clamp(26px, 4vh, 44px); }
.ssm .single-content .ssm-social .ssm-insta { margin-top: clamp(36px, 4vw, 56px); }
.ssm.ssm-is-home .entry.single-entry,
.ssm.ssm-has-ph .entry.single-entry { box-shadow: none; border-radius: 0; background: transparent; }

/* Accessibilité : focus visible partout, mouvement réduit. */
:is(.ssm, .editor-styles-wrapper) :focus { outline: none; }
:is(.ssm, .editor-styles-wrapper) :focus-visible,
.ssm-editor-block :focus-visible {
	outline: 3px solid var(--ssm-gold);
	outline-offset: 2px;
	border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
	:is(.ssm, .editor-styles-wrapper) *, :is(.ssm, .editor-styles-wrapper) *::before, :is(.ssm, .editor-styles-wrapper) *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
:is(.ssm, .editor-styles-wrapper) .screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Liens et boutons des composants : remise à zéro des styles Kadence. */
.ssm-header a, .ssm-hero a, .ssm-info a, .ssm-terr a, .ssm-social a, .ssm-footer a,
.ssm-rail a, .ssm-dock a, .ssm-search a, .ssm-modal a, .ssm-ph a, .ssm-tiles a, .ssm-list a,
.ssm-drawer a, .ssm-toast a, .ssm-mega a, .ssm-card a {
	text-decoration: none;
	color: inherit;
}
.ssm-header button, .ssm-hero button, .ssm-info button, .ssm-search button, .ssm-modal button,
.ssm-drawer button, .ssm-toast button, .ssm-dots button {
	font-family: inherit;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	min-height: 0;
	line-height: inherit;
}
:is(.ssm, .editor-styles-wrapper) a, :is(.ssm, .editor-styles-wrapper) button {
	transition: background-color .3s ease, color .3s ease, transform .45s var(--ssm-ease), box-shadow .45s var(--ssm-ease), opacity .3s ease, gap .3s ease, padding .3s ease, border-color .3s ease;
}

.ssm-wrap {
	max-width: 1320px;
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--ssm-gutter);
}

/* ---------- Titres de section (accroche manuscrite + capitales) ---------- */
.ssm-title {
	margin: 0;
	font-family: var(--ssm-font);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	color: var(--ssm-ink);
	text-transform: uppercase;
}
.ssm-title__accent {
	display: block;
	font-family: var(--ssm-script);
	font-weight: 400;
	font-size: clamp(24px, 2.3vw, 32px);
	color: var(--ssm-gold-dark);
	text-transform: none;
	line-height: 1;
	transform: rotate(-4deg);
	transform-origin: left bottom;
	margin: 0 0 6px;
}
.ssm-title__main { display: block; }
.ssm-title--xl { font-size: clamp(34px, 3.9vw, 56px); white-space: nowrap; }
.ssm-title--xl .ssm-title__accent { margin-bottom: 8px; }
.ssm-title--md { font-size: clamp(30px, 3.1vw, 44px); text-wrap: balance; }
.ssm-title--green .ssm-title__accent { color: var(--ssm-green); }
.ssm-title--light { color: var(--ssm-cream); }
.ssm-title--light .ssm-title__accent { color: var(--ssm-sand); }

/* ---------- Boutons ---------- */
.ssm-btn,
:is(.ssm, .editor-styles-wrapper) .ssm-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	background: var(--ssm-gold);
	color: var(--ssm-ink);
	border: 0;
	border-radius: 2px;
	padding: 16px 28px;
	font-family: var(--ssm-font);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.55;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}
.ssm-btn:hover, .ssm-btn:focus-visible,
:is(.ssm, .editor-styles-wrapper) .ssm-btn:hover, :is(.ssm, .editor-styles-wrapper) .ssm-btn:focus-visible { background: var(--ssm-green-dark); color: #fff; gap: 14px; }
.ssm-btn:active { transform: translateY(1px); }
.ssm-btn .ssm-ico { flex: none; }
.ssm-btn--sm { padding: 12px 20px; font-size: 17px; margin-top: 8px; }
.ssm-terr .ssm-btn--sm:hover, .ssm-terr .ssm-btn--sm:focus-visible { background: var(--ssm-cream); color: var(--ssm-ink); }
.ssm-btn--green, :is(.ssm, .editor-styles-wrapper) .ssm-btn--green { background: var(--ssm-green-dark); color: #fff; font-size: 16px; padding: 13px 22px; }
.ssm-btn--green:hover, .ssm-btn--green:focus-visible, :is(.ssm, .editor-styles-wrapper) .ssm-btn--green:hover { background: var(--ssm-ink); color: #fff; gap: 10px; }
.ssm-btn--light, :is(.ssm, .editor-styles-wrapper) .ssm-btn--light { background: var(--ssm-beige); color: var(--ssm-ink); font-size: 16px; padding: 13px 20px; }
.ssm-btn--light:hover, .ssm-btn--light:focus-visible, :is(.ssm, .editor-styles-wrapper) .ssm-btn--light:hover { background: var(--ssm-line); color: var(--ssm-ink); gap: 10px; }
.ssm-btn__info { font-weight: 400; font-size: 14px; opacity: .85; }
.ssm-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: var(--ssm-green-dark) !important;
	text-decoration: none;
}
.ssm-more .ssm-ico { color: var(--ssm-gold); }
.ssm-more:hover, .ssm-more:focus-visible { gap: 14px; color: var(--ssm-ink) !important; }

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */
.ssm-header { position: static; }
html.ssm-lock .ssm-dock, html.ssm-lock .ssm-toast, html.ssm-lock .ssm-rail { visibility: hidden; }
.ssm-bar {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 30;
	background: rgba(246, 242, 236, 0);
	transition: background-color .35s ease, box-shadow .35s ease;
}
.admin-bar .ssm-bar { top: var(--wp-admin--admin-bar--height, 32px); }
.ssm-bar__in {
	max-width: 1320px;
	width: 100%;
	margin: 0 auto;
	padding: 22px var(--ssm-gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 24px;
	transition: padding .35s ease;
}
.ssm-header.is-scrolled .ssm-bar,
.ssm-header.has-mega .ssm-bar {
	background: rgba(246, 242, 236, .96);
	box-shadow: 0 8px 30px rgba(42, 37, 34, .12);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.ssm-header.is-scrolled .ssm-bar__in { padding-top: 12px; padding-bottom: 12px; }

/* Logo */
.ssm-logo { display: flex; align-items: center; flex: none; }
.ssm-logo__in { display: grid; }
.ssm-logo img {
	grid-area: 1 / 1;
	height: clamp(30px, 2.6vw, 38px);
	width: auto;
	max-width: none;
	display: block;
	transition: opacity .35s ease;
}
.ssm-logo__d { opacity: 0; }
.ssm-logo__txt { font-weight: 700; font-size: 22px; color: #fff; }
.is-scrolled .ssm-logo__w, .has-mega .ssm-logo__w { opacity: 0; }
.is-scrolled .ssm-logo__d, .has-mega .ssm-logo__d { opacity: 1; }
.is-scrolled .ssm-logo__txt, .has-mega .ssm-logo__txt { color: var(--ssm-ink); }

/* Menu principal */
.ssm-nav { flex: 1 0 auto; display: flex; justify-content: center; }
.ssm-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(2px, .6vw, 10px);
	margin: 0; padding: 0;
	list-style: none;
	font-weight: 500;
}
.ssm-nav__item { position: relative; margin: 0; }
.ssm-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff !important;
	padding: 12px clamp(8px, 1vw, 14px);
	font-size: clamp(15px, 1.15vw, 17px);
	line-height: 1.55;
	white-space: nowrap;
}
.ssm-nav__ul {
	position: absolute;
	left: clamp(8px, 1vw, 14px);
	right: clamp(8px, 1vw, 14px);
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--ssm-gold);
	transform-origin: left;
	transform: scaleX(0);
	transition: transform .4s var(--ssm-ease);
}
.ssm-nav__item:hover .ssm-nav__ul,
.ssm-nav__item.is-open .ssm-nav__ul,
.ssm-nav__item.is-current .ssm-nav__ul,
.ssm-nav__link:focus-visible .ssm-nav__ul { transform: scaleX(1); }
.is-scrolled .ssm-nav__link, .has-mega .ssm-nav__link { color: var(--ssm-ink) !important; }

/* Raccourcis de la barre */
.ssm-tools { flex: none; display: flex; align-items: center; gap: 2px; }
.ssm-tool {
	width: 40px; height: 40px;
	color: #fff !important;
	display: grid;
	place-items: center;
	border-radius: 50%;
}
.ssm-tool:hover, .ssm-tool:focus-visible { color: var(--ssm-sand) !important; transform: translateY(-2px); }
.is-scrolled .ssm-tool, .has-mega .ssm-tool { color: var(--ssm-ink) !important; }
.is-scrolled .ssm-tool:hover, .has-mega .ssm-tool:hover,
.is-scrolled .ssm-tool:focus-visible { color: #9A5333 !important; }
.ssm-tool-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .35); margin: 0 6px; }
.is-scrolled .ssm-tool-sep, .has-mega .ssm-tool-sep { background: rgba(42, 37, 34, .25); }

/* Loupe : pastille ronde translucide au survol (pas de zoom), picto toujours au premier plan. */
:is(.ssm, .editor-styles-wrapper) .ssm-tool--search,
:is(.ssm, .editor-styles-wrapper) .ssm-tool--search:hover,
:is(.ssm, .editor-styles-wrapper) .ssm-tool--search:focus,
:is(.ssm, .editor-styles-wrapper) .ssm-tool--search:active {
	background-image: none !important;
	transform: none !important;
	transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
}
:is(.ssm, .editor-styles-wrapper) .ssm-tool--search .ssm-ico { position: relative; z-index: 1; }
:is(.ssm, .editor-styles-wrapper) .ssm-tool--search:hover,
:is(.ssm, .editor-styles-wrapper) .ssm-tool--search:active {
	color: #fff !important;
	background-color: rgba(255, 255, 255, .18) !important;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}
:is(.ssm, .editor-styles-wrapper) .ssm-tool--search:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 50%; color: #fff !important; }
:is(.ssm, .editor-styles-wrapper) .is-scrolled .ssm-tool--search:hover,
:is(.ssm, .editor-styles-wrapper) .has-mega .ssm-tool--search:hover,
:is(.ssm, .editor-styles-wrapper) .is-scrolled .ssm-tool--search:active {
	color: var(--ssm-ink) !important;
	background-color: rgba(42, 37, 34, .08) !important;
	box-shadow: 0 0 0 1px rgba(42, 37, 34, .08);
}
:is(.ssm, .editor-styles-wrapper) .is-scrolled .ssm-tool--search:focus-visible { outline-color: var(--ssm-ink); color: var(--ssm-ink) !important; }

/* Bouton menu mobile */
:is(.ssm, .editor-styles-wrapper) .ssm-burger {
	display: none;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	place-items: center;
}
:is(.ssm, .editor-styles-wrapper) .ssm-burger:hover, :is(.ssm, .editor-styles-wrapper) .ssm-burger:focus-visible { background: rgba(255, 255, 255, .15); color: #fff; }
:is(.ssm, .editor-styles-wrapper) .is-scrolled .ssm-burger { color: var(--ssm-ink); }
:is(.ssm, .editor-styles-wrapper) .is-scrolled .ssm-burger:hover { background: rgba(42, 37, 34, .08); color: var(--ssm-ink); }

/* Deux lignes entre 1100 et 1239 px (menu sous le logo, comme la maquette). */
@media (min-width: 1100px) and (max-width: 1239.98px) {
	.ssm-nav { flex: 1 0 100%; order: 3; }
	.ssm-logo { margin-right: auto; }
}

/* Mobile < 1100 px : menu replié dans le tiroir. */
@media (max-width: 1099.98px) {
	.ssm-nav, .ssm-megas { display: none !important; }
	:is(.ssm, .editor-styles-wrapper) .ssm-burger { display: grid; }
	.ssm-logo { margin-right: auto; }
	.ssm-tools { order: 3; flex: 0 0 auto; }
	:is(.ssm, .editor-styles-wrapper) .ssm-burger { order: 4; }
	.ssm-bar__in { gap: 10px 12px; }
	:is(.ssm, .editor-styles-wrapper) .ssm-tool--search { width: 44px; height: 44px; }
	:is(.ssm, .editor-styles-wrapper) .ssm-tool--search:hover, :is(.ssm, .editor-styles-wrapper) .ssm-tool--search:active {
		background-color: transparent !important;
		box-shadow: inset 0 0 0 2px #fff;
	}
	:is(.ssm, .editor-styles-wrapper) .is-scrolled .ssm-tool--search:hover { box-shadow: inset 0 0 0 2px var(--ssm-ink); background-color: transparent !important; }
}
@media (max-width: 479.98px) {
	.ssm-tools { order: 3; flex: 1 0 100%; }
	:is(.ssm, .editor-styles-wrapper) .ssm-burger { order: 4; position: absolute; right: calc(var(--ssm-gutter) - 2px); bottom: 20px; }
	.ssm-bar__in { position: relative; }
	.is-scrolled .ssm-bar__in .ssm-burger { bottom: 10px; }
}

/* ---------- Méga-menu ---------- */
.ssm-megas { position: absolute; left: 0; right: 0; top: 100%; }
.ssm-mega {
	position: absolute;
	left: 0; right: 0; top: 0;
	z-index: 35;
	padding: 6px var(--ssm-gutter) 0;
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
	transition: opacity .3s ease, transform .45s var(--ssm-ease);
}
.ssm-mega.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ssm-mega__in {
	max-width: 1208px;
	margin: 0 auto;
	background: var(--ssm-cream);
	color: var(--ssm-ink);
	border-radius: 2px;
	box-shadow: 0 40px 80px rgba(0, 0, 0, .28);
	padding: clamp(20px, 2.4vw, 30px);
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
	gap: clamp(24px, 3vw, 44px);
	max-height: calc(100vh - 130px);
	overflow: auto;
}
/* Carte photo de la rubrique */
.ssm-mega__card {
	position: relative;
	display: block;
	border-radius: 2px;
	overflow: hidden;
	min-height: 300px;
	color: #fff !important;
	isolation: isolate;
}
.ssm-mega__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ssm-ease); }
.ssm-mega__card:hover .ssm-mega__bg, .ssm-mega__card:focus-visible .ssm-mega__bg { transform: scale(1.04); }
.ssm-mega__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(34, 28, 25, .05) 30%, rgba(34, 28, 25, .8) 100%); }
.ssm-mega__cardtxt { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.ssm-mega__accent { font-family: var(--ssm-script); font-size: 24px; color: var(--ssm-sand); line-height: 1; }
.ssm-mega__label { font-size: 28px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.ssm-mega__intro { font-size: 15px; opacity: .92; text-wrap: pretty; margin: 0; line-height: 1.55; }
.ssm-mega__body { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; min-width: 0; }
.ssm-mega__links { display: grid; grid-template-columns: repeat(var(--ssm-cols, 2), minmax(0, 1fr)); gap: 4px 28px; }
.ssm-mega--carte .ssm-mega__link {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 14px 12px;
	border-radius: 2px;
	color: var(--ssm-ink) !important;
}
.ssm-mega--carte .ssm-mega__link:hover,
.ssm-mega--carte .ssm-mega__link:focus-visible,
.ssm-mega--carte .ssm-mega__link[aria-current] { background: var(--ssm-beige); }
.ssm-mega__thumb { flex: none; width: 58px; height: 58px; border-radius: 2px; background: var(--ssm-line); overflow: hidden; }
.ssm-mega__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ssm-mega__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ssm-mega--carte .ssm-mega__t { font-size: 17px; font-weight: 700; line-height: 1.2; }
.ssm-mega__d { font-size: 14px; color: var(--ssm-muted2); line-height: 1.35; text-wrap: pretty; }
.ssm-mega__cta {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: 12px;
	font-weight: 600;
	color: var(--ssm-green-dark) !important;
}
.ssm-mega__cta .ssm-ico { color: var(--ssm-gold); }
.ssm-mega__cta:hover, .ssm-mega__cta:focus-visible { gap: 14px; color: var(--ssm-ink) !important; }

/* Mises en page « Photo sous le titre » et « Titre | liens | photo » */
.ssm-mega--photo_sous_titre .ssm-mega__in { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
.ssm-mega--titre_liens_photo .ssm-mega__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.2fr); }
.ssm-mega__head { display: flex; flex-direction: column; gap: 10px; }
.ssm-mega__head .ssm-mega__label { color: var(--ssm-ink) !important; font-size: 28px; }
.ssm-mega__head .ssm-mega__label:hover { color: var(--ssm-green-dark) !important; }
.ssm-mega__head .ssm-mega__accent { color: var(--ssm-gold-dark); }
.ssm-mega__head .ssm-mega__intro { color: var(--ssm-muted); opacity: 1; }
.ssm-mega__photo { margin: 6px 0 0; border-radius: 2px; overflow: hidden; position: relative; }
.ssm-mega__photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ssm-mega--titre_liens_photo .ssm-mega__photo { margin: 0; min-height: 260px; }
.ssm-mega--titre_liens_photo .ssm-mega__photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.ssm-mega__photo figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 24px 14px 10px;
	font-size: 13px; color: #fff;
	background: linear-gradient(180deg, rgba(34, 28, 25, 0), rgba(34, 28, 25, .75));
}
.ssm-mega--photo_sous_titre .ssm-mega__link,
.ssm-mega--titre_liens_photo .ssm-mega__link,
.ssm-mega__group .ssm-mega__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--ssm-line);
	font-family: var(--ssm-font);
	text-transform: uppercase;
	font-weight: 600;
	font-size: max(13px, 16px);
	letter-spacing: .06em;
	line-height: 1.3;
	color: var(--ssm-ink) !important;
}
.ssm-mega--photo_sous_titre .ssm-mega__link .ssm-ico,
.ssm-mega--titre_liens_photo .ssm-mega__link .ssm-ico,
.ssm-mega__group .ssm-mega__link .ssm-ico { flex: none; opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .3s var(--ssm-ease); color: var(--ssm-gold); }
.ssm-mega--photo_sous_titre .ssm-mega__link:hover, .ssm-mega--titre_liens_photo .ssm-mega__link:hover,
.ssm-mega--photo_sous_titre .ssm-mega__link:focus-visible, .ssm-mega--titre_liens_photo .ssm-mega__link:focus-visible,
.ssm-mega__group .ssm-mega__link:hover { color: var(--ssm-green-dark) !important; }
.ssm-mega--photo_sous_titre .ssm-mega__link:hover .ssm-ico, .ssm-mega--titre_liens_photo .ssm-mega__link:hover .ssm-ico,
.ssm-mega--photo_sous_titre .ssm-mega__link:focus-visible .ssm-ico, .ssm-mega--titre_liens_photo .ssm-mega__link:focus-visible .ssm-ico,
.ssm-mega__group .ssm-mega__link:hover .ssm-ico { opacity: 1; transform: none; }
.ssm-mega__group { display: flex; flex-direction: column; }
.ssm-mega__gt { font-weight: 700; font-size: 18px; padding: 10px 4px; color: var(--ssm-green-dark) !important; }
.ssm-mega__gt:hover { color: var(--ssm-ink) !important; }

/* ==========================================================================
   ACCUEIL – BANDEAU
   ========================================================================== */
.ssm-hero {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 620px;
	display: flex;
	flex-direction: column;
	color: #fff;
	isolation: isolate;
	background: var(--ssm-green);
}
.ssm-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ssm-hero__img, .ssm-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ssm-hero__video { opacity: 0; transition: opacity .8s ease; }
.ssm-hero__video.is-playing { opacity: 1; }
.ssm-hero__shade {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(180deg, rgba(34, 28, 25, .55) 0%, rgba(34, 28, 25, .08) 30%, rgba(34, 28, 25, .15) 55%, rgba(34, 28, 25, .62) 100%);
}
.ssm-hero__in {
	flex: 1;
	max-width: 1320px;
	width: 100%;
	margin: 0 auto;
	padding: calc(84px + 20px) var(--ssm-gutter) clamp(70px, 10vh, 120px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}
:is(.ssm, .editor-styles-wrapper) .ssm-pill {
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	background: var(--ssm-gold);
	color: var(--ssm-ink);
	border: 0;
	border-radius: 2px;
	padding: 7px 18px 7px 7px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 26px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	cursor: pointer;
	text-align: left;
}
:is(.ssm, .editor-styles-wrapper) .ssm-pill:hover, :is(.ssm, .editor-styles-wrapper) .ssm-pill:focus-visible { background: var(--ssm-gold); color: var(--ssm-ink); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, .24); }
:is(.ssm, .editor-styles-wrapper) .ssm-pill:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 2px; }
:is(.ssm, .editor-styles-wrapper) .ssm-pill--urgence { background: #EBC9C1; }
:is(.ssm, .editor-styles-wrapper) .ssm-pill--urgence:hover { background: #EBC9C1; }
.ssm-pill__ico {
	flex: none; width: 30px; height: 30px; border-radius: 50%;
	background: var(--ssm-ink); color: var(--ssm-gold);
	display: grid; place-items: center;
}
.ssm-pill__txt { min-width: 0; text-wrap: pretty; }
.ssm-pill > .ssm-ico { flex: none; }
:is(.ssm, .editor-styles-wrapper) .ssm-hero__title {
	margin: 0;
	font-family: var(--ssm-font);
	font-size: clamp(42px, 7vw, 108px);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
	text-wrap: balance;
	text-transform: uppercase;
}
.ssm-hero__sub {
	margin: clamp(8px, 1.4vw, 16px) 0 0;
	font-family: var(--ssm-script);
	font-size: clamp(24px, 2.8vw, 40px);
	line-height: 1.15;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.ssm-hero__search {
	margin-top: clamp(26px, 4vh, 44px);
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 600px;
	text-align: left;
	background: rgba(246, 242, 236, .2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 2px;
	padding: 6px 6px 6px 26px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.ssm-hero__search:focus-within { border-color: #fff; }
:is(.ssm, .editor-styles-wrapper) .ssm-hero__search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-size: 17px;
	color: #fff;
	padding: 12px 0;
	margin: 0;
	border-radius: 0;
}
:is(.ssm, .editor-styles-wrapper) .ssm-hero__search input::placeholder { color: rgba(255, 255, 255, .88); opacity: 1; }
:is(.ssm, .editor-styles-wrapper) .ssm-hero__search input::-webkit-search-cancel-button { display: none; }
:is(.ssm, .editor-styles-wrapper) .ssm-hero__go {
	flex: none;
	width: 50px; height: 50px;
	border: 0;
	border-radius: 50%;
	background: var(--ssm-gold);
	color: var(--ssm-ink);
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	box-shadow: none;
}
:is(.ssm, .editor-styles-wrapper) .ssm-hero__go:hover, :is(.ssm, .editor-styles-wrapper) .ssm-hero__go:focus-visible { background: var(--ssm-cream); color: var(--ssm-ink); transform: scale(1.06); }
.ssm-hero__scroll {
	position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
	width: 28px; height: 44px;
	border: 2px solid rgba(255, 255, 255, .85);
	border-radius: 2px;
	display: flex; justify-content: center; padding-top: 8px;
}
.ssm-hero__scroll > span[aria-hidden] { width: 4px; height: 9px; border-radius: 2px; background: #fff; }
.ssm-hero__scroll:hover { border-color: #fff; }
@media (max-width: 1099.98px) {
	.ssm-hero__scroll { bottom: 92px; }
}

/* ==========================================================================
   ACCUEIL – RESTEZ INFORMÉ
   ========================================================================== */
.ssm-info { background: var(--ssm-cream); position: relative; padding: clamp(70px, 7vw, 100px) 0 clamp(40px, 4vw, 60px); scroll-margin-top: 80px; }
.ssm-info__in { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(48px, 6vw, 100px); }
.ssm-info__col { flex: 1 1 380px; max-width: 540px; display: flex; flex-direction: column; gap: 28px; }
.ssm-tabs {
	position: relative;
	align-self: flex-start;
	width: max-content;
	display: flex;
	align-items: flex-end;
	gap: clamp(18px, 2vw, 30px);
	padding-bottom: 22px;
}
.ssm-tabs__swap { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: clamp(44px, 3.6vw, 56px); height: auto; overflow: visible; pointer-events: none; }
:is(.ssm, .editor-styles-wrapper) .ssm-tab {
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	width: clamp(118px, 10.5vw, 150px);
	transform: scale(.82);
	opacity: .6;
	transition: transform .5s var(--ssm-ease), opacity .35s ease;
	border-radius: 50%;
	color: inherit;
}
:is(.ssm, .editor-styles-wrapper) .ssm-tab svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--ssm-font); }
:is(.ssm, .editor-styles-wrapper) .ssm-tab:hover { background: transparent; transform: scale(.88); opacity: .8; }
:is(.ssm, .editor-styles-wrapper) .ssm-tab[aria-selected="true"] { transform: scale(1); opacity: 1; }
:is(.ssm, .editor-styles-wrapper) .ssm-tab[aria-selected="true"]:hover { transform: scale(1.03); }
:is(.ssm, .editor-styles-wrapper) .ssm-tab:focus-visible { outline-offset: -4px; }
.ssm-info__text { margin: 0; color: var(--ssm-muted); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; text-wrap: pretty; }
.ssm-info__col .ssm-btn { margin-top: 10px; }

.ssm-info__slider {
	flex: 999 1 520px;
	min-width: 0;
	position: relative;
	align-self: flex-start;
	margin-right: calc(-1 * max(0px, (100vw - 1320px) / 2) - var(--ssm-gutter));
}
.ssm-info__band {
	position: absolute;
	left: clamp(-40px, -3vw, -20px);
	right: 0;
	top: calc(-1 * clamp(70px, 7vw, 100px));
	height: calc(64% + clamp(70px, 7vw, 100px));
	background: var(--ssm-green);
	border-radius: 0 0 0 20px;
}
.ssm-info__arrows { position: relative; display: flex; justify-content: flex-end; gap: 10px; padding: 0 var(--ssm-gutter) 26px 0; }
:is(.ssm, .editor-styles-wrapper) .ssm-arrow {
	width: 50px; height: 50px;
	border-radius: 50%;
	border: 0;
	background: var(--ssm-cream);
	color: var(--ssm-green);
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}
:is(.ssm, .editor-styles-wrapper) .ssm-arrow:hover, :is(.ssm, .editor-styles-wrapper) .ssm-arrow:focus-visible { background: var(--ssm-gold); color: var(--ssm-ink); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
:is(.ssm, .editor-styles-wrapper) .ssm-arrow[data-ssm-prev]:hover { transform: translateX(-3px); }
:is(.ssm, .editor-styles-wrapper) .ssm-arrow[data-ssm-next]:hover { transform: translateX(3px); }
:is(.ssm, .editor-styles-wrapper) .ssm-arrow:focus-visible { outline-color: #fff; border-radius: 50%; }
.ssm-info__panels { position: relative; transition: opacity .3s ease, transform .45s var(--ssm-ease); }
.ssm-info__panels.is-fading { opacity: 0; transform: translateY(14px); }
.ssm-info__empty { position: relative; color: var(--ssm-cream); padding: 40px 0 120px; margin: 0; font-size: 19px; }

.ssm-track {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	scrollbar-width: none;
	padding: 16px 40px 56px 0;
	margin: -16px 0 -56px 0;
	list-style: none;
}
.ssm-track::-webkit-scrollbar { display: none; }
.ssm-track:focus-visible { outline-offset: -3px; }
.ssm-track > .ssm-card { flex: 0 0 clamp(290px, 28vw, 410px); }

/* Cartes 3/4 (actualités et événements) */
.ssm-card {
	position: relative;
	aspect-ratio: 3 / 4;
	border-radius: 2px;
	overflow: hidden;
	scroll-snap-align: start;
	color: #fff;
	isolation: isolate;
	background: var(--ssm-green);
	box-shadow: 0 14px 34px rgba(42, 37, 34, .16);
	transition: transform .45s var(--ssm-ease), box-shadow .45s var(--ssm-ease);
	margin: 0;
}
.ssm-card:hover, .ssm-card:focus-within { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(42, 37, 34, .28); }
.ssm-card:focus-within { outline: 3px solid var(--ssm-gold); outline-offset: 3px; }
.ssm-card__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; display: block; }
.ssm-card__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(34, 28, 25, 0) 35%, rgba(34, 28, 25, .82) 100%); }
.ssm-card__tag {
	position: absolute; top: 14px; left: 14px;
	background: var(--ssm-cream); color: var(--ssm-ink);
	border-radius: 2px; padding: 6px 11px;
	font-size: 14px; font-weight: 600; line-height: 1.55;
	pointer-events: none;
}
.ssm-card__date {
	position: absolute; top: 16px; left: 16px;
	display: flex; flex-direction: column; align-items: center;
	min-width: 84px;
	background: var(--ssm-gold); color: var(--ssm-ink);
	border-radius: 2px; padding: 10px 12px 12px;
	line-height: 1;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
	pointer-events: none;
}
.ssm-card__wd { font-size: 14px; font-weight: 600; }
.ssm-card__day { font-size: 46px; font-weight: 700; margin: 4px 0 2px; }
.ssm-card__mon { font-size: 16px; font-weight: 700; text-transform: uppercase; }
.ssm-card__txt {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: clamp(22px, 2.2vw, 32px);
	display: flex; flex-direction: column; gap: 10px;
}
.ssm-card__meta { font-size: 15px; opacity: .92; line-height: 1.55; }
:is(.ssm, .editor-styles-wrapper) .ssm-card__title {
	margin: 0;
	font-family: var(--ssm-font);
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
	color: #fff;
	text-wrap: pretty;
	text-transform: none;
}
:is(.ssm, .editor-styles-wrapper) .ssm-card__link { color: #fff !important; text-decoration: none; }
:is(.ssm, .editor-styles-wrapper) .ssm-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
:is(.ssm, .editor-styles-wrapper) .ssm-card__link:focus-visible { outline: none; }

/* Points de pagination (mobile) */
.ssm-dots { display: none; position: relative; justify-content: center; gap: 8px; padding: 72px 0 0; }
:is(.ssm, .editor-styles-wrapper) .ssm-dot { width: 8px; height: 8px; border-radius: 2px; border: 0; padding: 0; cursor: pointer; background: rgba(246, 242, 236, .45); transition: width .3s ease, background-color .3s ease; min-height: 0; }
:is(.ssm, .editor-styles-wrapper) .ssm-dot.is-on { width: 24px; background: var(--ssm-gold); }
:is(.ssm, .editor-styles-wrapper) .ssm-dot:hover { background: var(--ssm-sand); }

@media (max-width: 999.98px) {
	.ssm-info__slider { margin-top: 70px; }
	.ssm-info__band { top: -30px; height: 64%; border-radius: 20px 0 0 20px; }
}
@media (max-width: 899.98px) {
	.ssm-info__col { max-width: none; }
}
@media (max-width: 699.98px) {
	.ssm-info__arrows { display: none; }
	.ssm-track { gap: 14px; }
	.ssm-track > .ssm-card { flex-basis: 82vw; }
	.ssm-dots { display: flex; }
}

/* ==========================================================================
   ACCUEIL – CARTE DU TERRITOIRE
   ========================================================================== */
.ssm-terr { background: var(--ssm-cream); padding: clamp(20px, 3vw, 40px) 0 0; position: relative; }
.ssm-terr .ssm-wrap { position: relative; z-index: 2; }
.ssm-terr__box {
	background: var(--ssm-sand);
	border-radius: 2px;
	padding: clamp(28px, 4vw, 56px);
	display: flex;
	flex-wrap: wrap;
	gap: clamp(30px, 5vw, 64px);
	align-items: stretch;
	margin-bottom: clamp(-200px, -14vw, -110px);
	box-shadow: 0 24px 60px rgba(42, 37, 34, .16);
}
.ssm-terr__photos {
	flex: 1 1 340px;
	min-width: 0;
	min-height: clamp(400px, 40vw, 560px);
	position: relative;
	margin-left: calc(-1 * (clamp(28px, 4vw, 56px) + clamp(16px, 3vw, 48px)));
	border-radius: 2px;
	overflow: hidden;
	background: var(--ssm-green);
	box-shadow: 0 30px 60px rgba(42, 37, 34, .3);
	isolation: isolate;
}
.ssm-terr__slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.ssm-terr__slide.is-on { opacity: 1; pointer-events: auto; }
.ssm-terr__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ssm-terr__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(34, 28, 25, 0) 30%, rgba(34, 28, 25, .86) 100%); }
.ssm-terr__txt {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: clamp(22px, 3vw, 36px);
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
	color: var(--ssm-cream);
}
.ssm-terr__acc { font-family: var(--ssm-script); font-size: clamp(22px, 2vw, 28px); color: var(--ssm-sand); line-height: 1; transform: rotate(-4deg); transform-origin: left bottom; }
:is(.ssm, .editor-styles-wrapper) .ssm-terr__name { margin: 0; font-family: var(--ssm-font); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: uppercase; text-wrap: balance; color: var(--ssm-cream); }
.ssm-terr__txt p { margin: 0; font-size: 16px; line-height: 1.45; max-width: 42ch; text-wrap: pretty; }
.ssm-terr__col { flex: 1.3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ssm-terr__text { margin: 0; color: #3A2D28; text-wrap: pretty; }
.ssm-map { background: var(--ssm-cream); border-radius: 2px; overflow: hidden; }
.ssm-map svg { width: 100%; height: auto; display: block; font-family: var(--ssm-font); }
.ssm-map svg text { font-family: var(--ssm-font); }
.ssm-map__commune { transition: fill .3s ease; }
.ssm-map__commune.is-on { fill: #EEE8E1; }
.ssm-pin { cursor: pointer; outline: none; }
.ssm-pin__line { fill: none; stroke: #A48374; stroke-width: .8; stroke-dasharray: 2 2.5; transition: stroke .3s ease; }
.ssm-pin__dot { r: 2.5px; fill: var(--ssm-green); stroke: var(--ssm-cream); stroke-width: 1; transition: r .3s ease, fill .3s ease; }
.ssm-pin text { fill: var(--ssm-ink); font-size: 7.2px; font-weight: 500; paint-order: stroke; stroke: var(--ssm-cream); stroke-width: 2; stroke-linejoin: round; }
.ssm-pin.is-on .ssm-pin__line { stroke: var(--ssm-green); stroke-width: 1.3; }
.ssm-pin.is-on .ssm-pin__dot { r: 3.8px; fill: var(--ssm-gold); stroke-width: 1.6; }
.ssm-pin.is-on text { font-weight: 800; }
.ssm-pin:focus-visible .ssm-pin__dot { stroke: var(--ssm-ink); stroke-width: 1.6; }
.ssm-pin:focus-visible text { text-decoration: underline; }
.ssm-pin__halo { r: 7.5px; fill: var(--ssm-green); fill-opacity: .16; transition: r .3s ease; }
.ssm-pin--home.is-on .ssm-pin__halo { r: 10px; }
.ssm-pin text.ssm-pin__home { font-size: 9.4px; font-weight: 800; stroke-width: 3; }
/* Lieux hors du cadre : flèche en bordure */
.ssm-pin__arrow { fill: var(--ssm-green); stroke: var(--ssm-cream); stroke-width: 1.2; stroke-linejoin: round; transition: fill .3s ease, transform .3s ease; transform-box: fill-box; transform-origin: center; }
.ssm-pin--out:hover .ssm-pin__arrow, .ssm-pin--out:focus-visible .ssm-pin__arrow { transform: scale(1.2); }
.ssm-pin--out.is-on .ssm-pin__arrow { fill: var(--ssm-gold); transform: scale(1.3); }
.ssm-pin--out:focus-visible .ssm-pin__arrow { stroke: var(--ssm-ink); }
.ssm-pin text .ssm-pin__km { font-size: 6px; font-weight: 500; fill: #5A4E48; }
@media (prefers-reduced-motion: reduce) { .ssm-pin__arrow { transition: none; } }

/* ==========================================================================
   ACCUEIL – RÉSEAUX SOCIAUX
   ========================================================================== */
.ssm-social { background: var(--ssm-green-dark); color: var(--ssm-cream); padding-top: clamp(250px, 22vw, 340px); position: relative; z-index: 1; }
.ssm-social__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ssm-social__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ssm-pillbtn {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(246, 242, 236, .12);
	color: var(--ssm-cream) !important;
	padding: 12px 18px; border-radius: 2px;
	font-weight: 600; font-size: 15px; line-height: 1.55;
}
.ssm-pillbtn:hover, .ssm-pillbtn:focus-visible { background: rgba(246, 242, 236, .22); color: #fff !important; }
.ssm-insta {
	display: flex; gap: 0;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; list-style: none;
}
.ssm-insta::-webkit-scrollbar { display: none; }
.ssm-insta__item { flex: 0 0 max(200px, calc(100% / 6)); aspect-ratio: 1; overflow: hidden; position: relative; scroll-snap-align: start; margin: 0; }
.ssm-insta__item a { display: block; width: 100%; height: 100%; }
.ssm-insta__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s ease, transform .6s var(--ssm-ease); }
.ssm-insta__item a:hover img, .ssm-insta__item a:focus-visible img { opacity: .85; }
.ssm-insta__item a:focus-visible { outline-offset: -4px; }
.ssm-dots--light { padding: 18px 0 22px; }
@media (max-width: 699.98px) {
	.ssm-insta__item { flex-basis: 80%; }
}

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.ssm-footer { background: var(--global-palette1); color: #EDE5DB; position: relative; font-size: 17px; line-height: 1.55; }
.ssm-footer > .ssm-wrap { padding-top: clamp(60px, 7vw, 90px); }
.ssm-partners {
	background: #fff; border-radius: 2px;
	padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 40px);
	display: flex; flex-direction: column; gap: 22px; margin-bottom: 10px;
}
:is(.ssm, .editor-styles-wrapper) .ssm-partners__t { margin: 0; font-family: var(--ssm-font); font-size: 18px; font-weight: 700; color: var(--ssm-ink); line-height: 1.55; letter-spacing: 0; text-transform: none; }
.ssm-partners__list { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: clamp(10px, 2.2vw, 36px); margin: 0; padding: 0; list-style: none; }
.ssm-partners__list li { display: flex; align-items: center; justify-content: center; height: clamp(28px, 4.4vw, 64px); flex: 0 1 auto; min-width: 0; margin: 0; }
.ssm-partners__list a { display: flex; height: 100%; align-items: center; }
.ssm-partners__list a:hover, .ssm-partners__list a:focus-visible { opacity: .75; }
.ssm-partners__list img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
.ssm-fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 40px; padding: 50px 0; }
.ssm-fcol { display: flex; flex-direction: column; gap: 8px; }
.ssm-fcol p { margin: 0; }
.ssm-fcol ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ssm-fcol li { margin: 0; }
.ssm-fcol:first-child { gap: 12px; }
:is(.ssm, .editor-styles-wrapper) .ssm-fcol__name { margin: 0; font-family: var(--ssm-font); font-size: 22px; font-weight: 700; color: #fff; line-height: 1; letter-spacing: 0; text-transform: none; }
:is(.ssm, .editor-styles-wrapper) .ssm-fcol__t { margin: 0; font-family: var(--ssm-font); font-weight: 700; color: #fff; font-size: 19px; line-height: 1.55; letter-spacing: 0; text-transform: none; }
.ssm-fcol__tel { color: #fff !important; font-weight: 600; }
.ssm-fcol__mail { color: #E4DBD1 !important; }
.ssm-fcol__mail:hover, .ssm-fcol__mail:focus-visible { color: #fff !important; }
.ssm-fcol nav a, .ssm-fcol ul a { color: #EDE5DB !important; }
.ssm-fcol ul a:hover, .ssm-fcol ul a:focus-visible { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.ssm-legal {
	display: flex; flex-wrap: wrap; gap: 10px 24px;
	padding: 22px 0 84px;
	border-top: 1px solid rgba(243, 220, 200, .15);
	font-size: 14px; color: #E4DBD1;
}
.ssm-legal ul { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; flex: 1 1 auto; }
.ssm-legal li { margin: 0; }
.ssm-legal a { color: #E4DBD1 !important; }
.ssm-legal a:hover, .ssm-legal a:focus-visible { color: #fff !important; }
.ssm-footer :focus-visible { outline-color: var(--ssm-sand); }

/* ==========================================================================
   ACCÈS RAPIDES
   ========================================================================== */
.ssm-qa-ico {
	display: inline-block;
	width: var(--ssm-ico-s, 23px);
	height: var(--ssm-ico-s, 23px);
	background-color: currentColor;
	-webkit-mask: var(--ssm-ico) center / contain no-repeat;
	mask: var(--ssm-ico) center / contain no-repeat;
	flex: none;
}
.ssm-qa-ico--vide { -webkit-mask: none; mask: none; border-radius: 50%; width: 10px; height: 10px; }
.ssm-rail {
	position: fixed; left: 0; top: 50%; transform: translateY(-50%);
	z-index: 40;
	width: 60px;
	transition: width .45s var(--ssm-ease), box-shadow .3s ease;
	background: rgba(42, 37, 34, .84);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	backdrop-filter: blur(18px) saturate(1.2);
	border: 1px solid rgba(246, 242, 236, .16);
	border-left: 0;
	border-radius: 0 16px 16px 0;
	overflow: hidden;
	box-shadow: 6px 14px 34px rgba(42, 37, 34, .22);
	color: var(--ssm-cream);
}
.ssm-rail:hover, .ssm-rail:focus-within { width: 236px; box-shadow: 20px 30px 70px rgba(42, 37, 34, .35); }
.ssm-rail__head { display: flex; align-items: center; height: 46px; background: var(--ssm-gold); color: var(--ssm-ink); white-space: nowrap; }
.ssm-rail__one { flex: none; width: 60px; display: flex; flex-direction: column; align-items: center; line-height: .85; font-size: 12px; font-weight: 700; }
.ssm-rail__one b { font-size: 20px; font-weight: 800; }
.ssm-rail__lbl { font-size: 15px; font-weight: 700; opacity: 0; transition: opacity .25s ease; }
.ssm-rail__list { display: flex; flex-direction: column; padding: 6px 0; margin: 0; list-style: none; }
.ssm-rail__list li { margin: 0; }
.ssm-rail__a { display: flex; align-items: center; height: 50px; padding-right: 22px; color: var(--ssm-cream) !important; font-size: 15px; font-weight: 600; white-space: nowrap; line-height: 1.2; }
.ssm-rail__a:hover, .ssm-rail__a:focus-visible { background: rgba(246, 242, 236, .12); color: var(--ssm-sand) !important; }
.ssm-rail__a:focus-visible { outline-offset: -3px; border-radius: 0; }
.ssm-rail__ico { flex: none; width: 60px; display: grid; place-items: center; }
.ssm-rail__t { opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .4s var(--ssm-ease); }
.ssm-rail:hover .ssm-rail__lbl, .ssm-rail:focus-within .ssm-rail__lbl,
.ssm-rail:hover .ssm-rail__t, .ssm-rail:focus-within .ssm-rail__t { opacity: 1; transform: none; }
.ssm-dock { display: none; }
@media (max-width: 1099.98px) {
	.ssm-rail { display: none; }
	.ssm-dock {
		display: block;
		position: fixed; left: 0; right: 0; bottom: 0;
		z-index: 40;
		pointer-events: none;
	}
	.ssm-dock ul {
		display: flex; gap: 8px;
		padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
		margin: 0; list-style: none;
		overflow-x: auto; scrollbar-width: none;
		justify-content: center;
	}
	.ssm-dock ul::-webkit-scrollbar { display: none; }
	.ssm-dock li { margin: 0; flex: none; }
	.ssm-dock__a {
		pointer-events: auto;
		min-height: 44px;
		display: inline-flex; align-items: center; gap: 7px;
		padding: 0 15px 0 12px;
		border-radius: 2px;
		background: rgba(42, 37, 34, .72);
		-webkit-backdrop-filter: blur(16px) saturate(1.3);
		backdrop-filter: blur(16px) saturate(1.3);
		border: 1px solid rgba(246, 242, 236, .22);
		color: var(--ssm-cream) !important;
		font-size: 14px; font-weight: 600; line-height: 1;
		white-space: nowrap;
		box-shadow: 0 8px 24px rgba(34, 28, 25, .25);
	}
	.ssm-dock__a:hover, .ssm-dock__a:focus-visible, .ssm-dock__a:active { background: var(--ssm-gold); color: var(--ssm-ink) !important; }
	.ssm-dock__a:focus-visible { outline-color: #fff; border-radius: 2px; }
}
@media (max-width: 439.98px) {
	.ssm-dock ul { justify-content: flex-start; }
}

/* ==========================================================================
   FENÊTRES : ALERTE, RECHERCHE, TIROIR, TOAST
   ========================================================================== */
.ssm-modal, .ssm-search {
	position: fixed; inset: 0;
	z-index: 95;
	background: rgba(34, 28, 25, .6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	display: grid;
	place-items: center;
	padding: 16px;
	opacity: 0;
	transition: opacity .25s ease;
}
.ssm-modal[hidden], .ssm-search[hidden], .ssm-drawer[hidden], .ssm-toast[hidden] { display: none !important; }
.ssm-modal.is-open, .ssm-search.is-open { opacity: 1; }
.ssm-alert__box {
	position: relative; width: 100%; max-width: 560px;
	max-height: calc(100dvh - 40px); overflow: auto;
	background: var(--ssm-cream); color: var(--ssm-ink);
	border-radius: 2px; box-shadow: 0 40px 80px rgba(0, 0, 0, .3);
}
.ssm-alert__head { background: var(--ssm-gold); padding: 22px clamp(22px, 3vw, 34px); display: flex; align-items: center; gap: 14px; }
.ssm-alert--urgence .ssm-alert__head { background: #EBC9C1; }
.ssm-alert__ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ssm-ink); color: var(--ssm-gold); display: grid; place-items: center; }
.ssm-alert__lbl { display: flex; flex-direction: column; line-height: 1.1; }
.ssm-alert__script { font-family: var(--ssm-script); font-size: 22px; }
.ssm-alert__date { font-size: 14px; font-weight: 600; }
:is(.ssm, .editor-styles-wrapper) .ssm-alert__x {
	margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
	background: rgba(42, 37, 34, .12); color: var(--ssm-ink); cursor: pointer; display: grid; place-items: center;
}
:is(.ssm, .editor-styles-wrapper) .ssm-alert__x:hover, :is(.ssm, .editor-styles-wrapper) .ssm-alert__x:focus-visible { background: rgba(42, 37, 34, .22); color: var(--ssm-ink); }
.ssm-alert__body { padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 16px; }
:is(.ssm, .editor-styles-wrapper) .ssm-alert__body h2 { margin: 0; font-family: var(--ssm-font); font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1.15; text-wrap: balance; color: var(--ssm-ink); letter-spacing: 0; text-transform: none; }
.ssm-alert__msg { color: var(--ssm-muted); line-height: 1.6; display: flex; flex-direction: column; gap: 16px; }
.ssm-alert__msg p { margin: 0; text-wrap: pretty; }
.ssm-alert__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Recherche : centrée verticalement à toutes les largeurs */
.ssm-search { place-items: center; align-items: center; }
.ssm-search__box {
	width: 100%; max-width: 680px;
	max-height: calc(100dvh - 32px);
	display: flex; flex-direction: column;
	background: var(--ssm-cream);
	border-radius: 2px;
	box-shadow: 0 40px 80px rgba(0, 0, 0, .3);
	overflow: hidden;
}
.ssm-search__form { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 22px; border-bottom: 1px solid var(--ssm-line); flex: none; margin: 0; }
.ssm-search__form > .ssm-ico { color: var(--ssm-green); flex: none; }
:is(.ssm, .editor-styles-wrapper) .ssm-search__input {
	flex: 1; min-width: 0;
	border: 0; outline: 0; background: transparent; box-shadow: none; border-radius: 0;
	font: inherit; font-size: 19px; color: var(--ssm-ink);
	padding: 14px 0; margin: 0;
}
:is(.ssm, .editor-styles-wrapper) .ssm-search__input:focus { border: 0; box-shadow: none; outline: 0; }
:is(.ssm, .editor-styles-wrapper) .ssm-search__input::-webkit-search-cancel-button { display: none; }
:is(.ssm, .editor-styles-wrapper) .ssm-search__input::placeholder { color: #6E5548; opacity: 1; }
.ssm-search__form:focus-within { box-shadow: inset 0 -2px 0 var(--ssm-gold); }
:is(.ssm, .editor-styles-wrapper) .ssm-search__close {
	flex: none; width: 44px; height: 44px; border-radius: 2px; border: 0; padding: 0;
	background: var(--ssm-line); color: var(--ssm-ink); cursor: pointer; display: grid; place-items: center;
}
:is(.ssm, .editor-styles-wrapper) .ssm-search__close:hover, :is(.ssm, .editor-styles-wrapper) .ssm-search__close:focus-visible { background: #D1C7BD; color: var(--ssm-ink); }
.ssm-search__body { padding: 14px 14px 18px; overflow: auto; flex: 1 1 auto; min-height: 0; }
.ssm-search__results { display: flex; flex-direction: column; }
.ssm-search__res { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border-radius: 2px; color: var(--ssm-ink) !important; }
.ssm-search__res:hover, .ssm-search__res.is-active, .ssm-search__res:focus-visible { background: var(--ssm-beige); }
.ssm-search__rt { min-width: 0; font-size: 17px; }
.ssm-search__rt strong { font-weight: 700; color: var(--ssm-green-dark); }
.ssm-search__rc { flex: none; font-size: 14px; color: var(--ssm-muted2); }
.ssm-search__empty { margin: 8px 12px; color: var(--ssm-muted); }
:is(.ssm, .editor-styles-wrapper) .ssm-linkbtn { border: 0; background: none; padding: 0; color: var(--ssm-green-dark); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
:is(.ssm, .editor-styles-wrapper) .ssm-linkbtn:hover { background: none; color: var(--ssm-ink); }
.ssm-search__h { margin: 6px 12px 12px; font-size: 15px; font-weight: 600; color: var(--ssm-muted); }
.ssm-search__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px; margin-bottom: 14px; }
:is(.ssm, .editor-styles-wrapper) .ssm-chip {
	border: 0; border-radius: 2px; background: var(--ssm-beige); color: var(--ssm-ink);
	font: inherit; font-size: 15px; font-weight: 500; padding: 10px 14px; cursor: pointer; line-height: 1.3; min-height: 44px;
}
:is(.ssm, .editor-styles-wrapper) .ssm-chip:hover, :is(.ssm, .editor-styles-wrapper) .ssm-chip:focus-visible { background: var(--ssm-line); color: var(--ssm-ink); }
.ssm-search__qagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 0 12px; }
.ssm-search__qaitem { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 44px; border-radius: 2px; background: var(--ssm-green-dark); color: var(--ssm-cream) !important; font-weight: 600; font-size: 15px; }
.ssm-search__qaitem:hover, .ssm-search__qaitem:focus-visible { background: var(--ssm-ink); color: var(--ssm-sand) !important; }
.ssm-search__keys { margin: 0; padding: 10px 22px; border-top: 1px solid var(--ssm-line); font-size: 13px; color: var(--ssm-muted2); flex: none; }
.ssm-search__keys kbd { font-family: inherit; font-size: 12px; background: var(--ssm-beige); border-radius: 2px; padding: 1px 6px; margin-right: 2px; }
@media (max-width: 1099.98px) {
	.ssm-search__qa { display: none; }
	.ssm-search__keys { display: none; }
}

/* Tiroir mobile */
.ssm-drawer {
	position: fixed; inset: 0; z-index: 60;
	background: var(--ssm-ink); color: #fff;
	padding: 24px var(--ssm-gutter) 120px;
	display: flex; flex-direction: column; gap: 8px;
	overflow: auto;
	opacity: 0; transition: opacity .25s ease;
}
.ssm-drawer.is-open { opacity: 1; }
.admin-bar .ssm-drawer { top: var(--wp-admin--admin-bar--height, 46px); }
.ssm-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
:is(.ssm, .editor-styles-wrapper) .ssm-drawer__close {
	width: 48px; height: 48px; border-radius: 2px; border: 0; padding: 0;
	background: var(--ssm-cream); color: var(--ssm-ink); cursor: pointer; display: grid; place-items: center;
}
:is(.ssm, .editor-styles-wrapper) .ssm-drawer__close:hover, :is(.ssm, .editor-styles-wrapper) .ssm-drawer__close:focus-visible { background: var(--ssm-gold); color: var(--ssm-ink); }
.ssm-drawer__list { margin: 0; padding: 0; list-style: none; }
.ssm-drawer__item { margin: 0; border-bottom: 1px solid rgba(243, 220, 200, .12); }
:is(.ssm, .editor-styles-wrapper) .ssm-drawer__toggle {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
	color: #fff !important; font-family: var(--ssm-font); font-size: 30px; font-weight: 700; line-height: 1.2;
	padding: 12px 0; background: none; border: 0; cursor: pointer; text-align: left;
}
:is(.ssm, .editor-styles-wrapper) .ssm-drawer__toggle:hover { background: none; color: var(--ssm-sand) !important; }
.ssm-drawer__toggle .ssm-ico { transition: transform .3s var(--ssm-ease); flex: none; }
.ssm-drawer__toggle[aria-expanded="true"] .ssm-ico { transform: rotate(180deg); }
.ssm-drawer__sub { margin: 0 0 14px; padding: 0; list-style: none; }
.ssm-drawer__sub a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; font-size: 18px; color: #EDE5DB !important; }
.ssm-drawer__sub a:hover, .ssm-drawer__sub a[aria-current] { color: var(--ssm-sand) !important; }
.ssm-drawer__all { font-weight: 600; color: var(--ssm-sand) !important; }
.ssm-drawer__l3 a { padding-left: 18px; font-size: 16px; }
.ssm-drawer__contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ssm-drawer__contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 2px; background: rgba(246, 242, 236, .12); color: #fff !important; font-weight: 600; }
.ssm-drawer__contact a:hover { background: var(--ssm-gold); color: var(--ssm-ink) !important; }
.ssm-drawer .ssm-logo img.ssm-logo__d { display: none; }
.ssm-drawer .ssm-logo img.ssm-logo__w { opacity: 1; }

/* Toast d'alerte (pages intérieures), au-dessus du dock mobile */
.ssm-toast {
	position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
	z-index: 45;
	display: flex; align-items: center; gap: 10px;
	width: max-content; max-width: calc(100% - 24px);
	background: var(--ssm-gold); color: var(--ssm-ink);
	border-radius: 2px; padding: 6px 6px 6px 7px;
	box-shadow: 0 14px 40px rgba(34, 28, 25, .3);
}
.ssm-toast--urgence { background: #EBC9C1; }
:is(.ssm, .editor-styles-wrapper) .ssm-toast__txt { border: 0; background: none; padding: 6px 4px; color: var(--ssm-ink); font-size: 15px; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; min-height: 44px; }
:is(.ssm, .editor-styles-wrapper) .ssm-toast__txt:hover { background: none; color: var(--ssm-ink); text-decoration: underline; }
:is(.ssm, .editor-styles-wrapper) .ssm-toast__x { flex: none; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; background: rgba(42, 37, 34, .12); color: var(--ssm-ink); cursor: pointer; display: grid; place-items: center; }
:is(.ssm, .editor-styles-wrapper) .ssm-toast__x:hover, :is(.ssm, .editor-styles-wrapper) .ssm-toast__x:focus-visible { background: rgba(42, 37, 34, .22); color: var(--ssm-ink); }
@media (max-width: 1099.98px) {
	.ssm-toast { bottom: calc(76px + env(safe-area-inset-bottom)); border-radius: 2px; }
}

/* ==========================================================================
   PAGES INTÉRIEURES
   ========================================================================== */
.ssm-ph {
	position: relative;
	isolation: isolate;
	min-height: clamp(380px, 46vh, 520px);
	display: flex;
	align-items: flex-end;
	color: #fff;
	background: var(--ssm-green);
	padding: 170px 0 clamp(40px, 5vw, 64px);
}
.ssm-ph__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; display: block; }
.ssm-ph__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(34, 28, 25, .6) 0%, rgba(34, 28, 25, .25) 40%, rgba(34, 28, 25, .78) 100%); }
.ssm-ph__in { position: relative; display: flex; flex-direction: column; gap: 16px; }
.ssm-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.ssm-crumbs li { display: inline-flex; align-items: center; margin: 0; color: rgba(255, 255, 255, .92); }
.ssm-crumbs li + li::before { content: "›"; margin: 0 10px; opacity: .7; }
.ssm-crumbs a { color: #fff !important; text-decoration: underline !important; text-decoration-color: rgba(255, 255, 255, .45) !important; text-underline-offset: 3px; }
.ssm-crumbs a:hover, .ssm-crumbs a:focus-visible { text-decoration-color: var(--ssm-gold) !important; }
.ssm-crumbs a:focus-visible { outline-color: #fff; }
:is(.ssm, .editor-styles-wrapper) .ssm-ph__title {
	margin: 0;
	font-family: var(--ssm-font);
	font-size: clamp(36px, 5.2vw, 76px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
	text-wrap: balance;
	max-width: 20ch;
}
.ssm-ph__title .ssm-title__accent { color: var(--ssm-sand); margin-bottom: 10px; font-size: clamp(26px, 2.6vw, 38px); }
.ssm-ph__main { display: block; }
.ssm-h1__script { font-family: var(--ssm-script); font-weight: 400; text-transform: none; color: var(--ssm-sand); font-size: 1.08em; line-height: .9; }
.ssm-ph__lead { margin: 0; max-width: 62ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .95); text-wrap: pretty; }
.ssm-ph__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 16px; }
.ssm-ph__tag { background: var(--ssm-gold); color: var(--ssm-ink); border-radius: 2px; padding: 4px 10px; font-weight: 600; font-size: 15px; }

/* Colonne de lecture */
.ssm.ssm-has-ph .entry-content-wrap { padding: 0; }
.ssm.ssm-has-ph .entry-content {
	padding: clamp(40px, 5vw, 72px) var(--ssm-gutter) clamp(70px, 8vw, 110px);
	margin: 0;
	font-size: 18px;
	line-height: 1.7;
	color: #3A2D28;
}
.ssm.ssm-has-ph .entry-content > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.ssm.ssm-has-ph .entry-content > .alignwide,
.ssm.ssm-has-ph .entry-content > .ssm-tiles-wrap,
.ssm.ssm-has-ph .entry-content > .ssm-list,
.ssm.ssm-has-ph .entry-content > .ssm-plan,
.ssm.ssm-has-ph .entry-content > .ssm-coord,
.ssm.ssm-has-ph .entry-content > .ssm-bul { max-width: 1208px; }
.ssm.ssm-has-ph .entry-content > .alignfull { max-width: none; margin-left: calc(-1 * var(--ssm-gutter)); margin-right: calc(-1 * var(--ssm-gutter)); }
.ssm.ssm-has-ph .entry-content h2 { font-family: var(--ssm-font); font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.15; color: var(--ssm-ink); margin-top: 1.6em; margin-bottom: .6em; }
.ssm.ssm-has-ph .entry-content h3 { font-family: var(--ssm-font); font-size: clamp(21px, 1.8vw, 25px); font-weight: 700; line-height: 1.2; color: var(--ssm-green); margin-top: 1.4em; margin-bottom: .5em; }
.ssm.ssm-has-ph .entry-content a:not([class]) { color: var(--ssm-green-dark); text-decoration: underline; text-decoration-color: var(--ssm-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ssm.ssm-has-ph .entry-content a:not([class]):hover { color: var(--ssm-ink); }
.ssm-encadre { background: var(--ssm-beige); border-left: 5px solid var(--ssm-gold); border-radius: 0 14px 14px 0; padding: 24px 28px; }
.ssm-encadre > :first-child { margin-top: 0; }
.ssm-encadre > :last-child { margin-bottom: 0; }

/* Vignettes des sous-pages */
.ssm-tiles-wrap { margin-top: clamp(40px, 5vw, 64px); }
.ssm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 959.98px) { .ssm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .ssm-tiles { grid-template-columns: 1fr; } }
.ssm-tile {
	position: relative;
	aspect-ratio: 1;
	border-radius: 2px;
	overflow: hidden;
	isolation: isolate;
	container-type: inline-size;
	background: var(--ssm-green);
	margin: 0;
}
.ssm-tile__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ssm-ease); }
.ssm-tile__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(42, 37, 34, 0) 38%, rgba(42, 37, 34, .88) 100%); transition: background-color .4s ease; }
:is(.ssm, .editor-styles-wrapper) .ssm-tile__title,
.ssm.ssm-has-ph .entry-content .ssm-tile__title {
	position: absolute; left: 0; right: 0; bottom: 0;
	margin: 0 !important;
	padding: 0 8% 9%;
	text-align: center;
	color: #fff !important;
	font-family: var(--ssm-font) !important;
	font-size: clamp(24px, 8.5cqi, 54px) !important;
	font-weight: 700 !important;
	line-height: 1.05 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	font-variant: normal !important;
	text-wrap: balance;
	overflow-wrap: anywhere;
	hyphens: auto;
}
:is(.ssm, .editor-styles-wrapper) .ssm-tile__link { color: #fff !important; text-decoration: none !important; }
:is(.ssm, .editor-styles-wrapper) .ssm-tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
:is(.ssm, .editor-styles-wrapper) .ssm-tile__link:focus-visible { outline: none; }
.ssm-tile:hover .ssm-tile__img, .ssm-tile:focus-within .ssm-tile__img { transform: scale(1.04); }
.ssm-tile:hover .ssm-tile__shade, .ssm-tile:focus-within .ssm-tile__shade { background-color: rgba(164, 90, 56, .28); }
.ssm-tile:focus-within { outline: 3px solid var(--ssm-gold); outline-offset: 3px; }

/* Listes (agenda, actualités, bulletins) */
.ssm-list__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 32px; }
.ssm-filters ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ssm-filters li { margin: 0; }
.ssm-filters a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 2px;
	background: var(--ssm-beige); color: var(--ssm-ink) !important; font-weight: 600; font-size: 15px; text-decoration: none !important;
}
.ssm-filters a:hover, .ssm-filters a:focus-visible { background: var(--ssm-line); }
.ssm-filters a[aria-current] { background: var(--ssm-green-dark); color: #fff !important; }
.ssm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.ssm-list__empty { font-size: 19px; color: var(--ssm-muted); padding: 30px; background: var(--ssm-beige); border-radius: 2px; text-align: center; }
.ssm-pager ul { display: flex; justify-content: center; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.ssm-pager a { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 2px; background: var(--ssm-beige); color: var(--ssm-ink) !important; font-weight: 600; text-decoration: none !important; }
.ssm-pager a[aria-current], .ssm-pager a:hover { background: var(--ssm-green-dark); color: #fff !important; }
.ssm-pubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.ssm-pub { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ssm-pub__cover { display: grid; place-items: center; aspect-ratio: 210 / 297; border-radius: 2px; overflow: hidden; background: var(--ssm-beige); color: var(--ssm-green); box-shadow: 0 14px 34px rgba(42, 37, 34, .16); transition: transform .45s var(--ssm-ease); }
.ssm-pub__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ssm-pub:hover .ssm-pub__cover, .ssm-pub:focus-within .ssm-pub__cover { transform: translateY(-6px); }
.ssm-pub:focus-within .ssm-pub__cover { outline: 3px solid var(--ssm-gold); outline-offset: 3px; }
.ssm-pub__txt { display: flex; flex-direction: column; gap: 4px; }
.ssm-pub__col { font-size: 14px; font-weight: 600; color: var(--ssm-gold-dark); text-transform: uppercase; letter-spacing: .04em; }
:is(.ssm, .editor-styles-wrapper) .ssm-pub__title, .ssm.ssm-has-ph .entry-content .ssm-pub__title { margin: 0; font-size: 20px; line-height: 1.2; color: var(--ssm-ink); }
:is(.ssm, .editor-styles-wrapper) .ssm-pub__link { color: var(--ssm-ink) !important; text-decoration: none !important; }
:is(.ssm, .editor-styles-wrapper) .ssm-pub__link::after { content: ""; position: absolute; inset: 0; }
:is(.ssm, .editor-styles-wrapper) .ssm-pub__link:focus-visible { outline: none; }
.ssm-pub__date { font-size: 15px; color: var(--ssm-muted2); }

/* Encadré événement, bulletin, coordonnées, plan du site */
.ssm-box { background: #fff; border-radius: 2px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 14px 34px rgba(42, 37, 34, .08); margin-bottom: 36px; display: flex; flex-direction: column; gap: 20px; }
.ssm-box dl { margin: 0; display: grid; gap: 14px; }
.ssm-box__row { display: grid; grid-template-columns: 24px 140px 1fr; gap: 10px; align-items: start; }
.ssm-box__row .ssm-ico { color: var(--ssm-gold-dark); margin-top: 4px; }
.ssm-box dt { font-weight: 700; color: var(--ssm-ink); }
.ssm-box dd { margin: 0; }
@media (max-width: 599.98px) { .ssm-box__row { grid-template-columns: 24px 1fr; } .ssm-box dd { grid-column: 2; } }
.ssm-bul { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 30px; }
.ssm-bul__cover { width: 260px; max-width: 100%; height: auto; border-radius: 2px; box-shadow: 0 14px 34px rgba(42, 37, 34, .16); }
.ssm-bul__txt { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ssm-bul__txt h2 { margin-top: 0 !important; }
.ssm-coord { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.ssm-coord__card { background: #fff; border-radius: 2px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 14px 34px rgba(42, 37, 34, .08); }
.ssm-coord__card h2 { margin-top: 0 !important; }
.ssm-coord__card ul { padding-left: 1.1em; }
.ssm-coord__card a { display: inline-flex; align-items: center; gap: 10px; color: var(--ssm-green-dark) !important; font-weight: 600; }
.ssm-coord__big { font-size: 22px; }
.ssm-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 40px; }
.ssm-plan h2 { margin-top: 0 !important; font-size: 22px !important; }
.ssm-plan a { color: var(--ssm-green-dark) !important; }
.ssm-plan ul { padding-left: 1.1em; margin: 0; }
.ssm-etapes { counter-reset: e; list-style: none; padding: 0; }
.ssm-etapes li { counter-increment: e; position: relative; padding: 4px 0 18px 58px; }
.ssm-etapes li::before { content: counter(e); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ssm-gold); color: var(--ssm-ink); font-weight: 700; display: grid; place-items: center; }

/* 404, recherche, lien de retour */
.ssm-inner { max-width: 860px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--ssm-gutter) clamp(70px, 8vw, 110px); font-size: 18px; line-height: 1.7; color: #3A2D28; }
.ssm-inner__lead { margin: 0 0 24px; }
.ssm-sform { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }
:is(.ssm) .ssm-sform__input { flex: 1 1 260px; min-width: 0; min-height: 56px; padding: 0 20px; border: 2px solid var(--ssm-line); border-radius: 2px; background: #fff; font: inherit; font-size: 18px; color: var(--ssm-ink); box-shadow: none; }
:is(.ssm) .ssm-sform__input:focus { border-color: var(--ssm-green-dark); }
.ssm-inner__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.ssm-results { list-style: none; margin: 0; padding: 0; }
.ssm-result { position: relative; margin: 0; padding: 22px 0; border-top: 1px solid var(--ssm-line); }
.ssm-result:last-child { border-bottom: 1px solid var(--ssm-line); }
.ssm-result__type { display: inline-block; margin-bottom: 4px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ssm-gold-dark); }
:is(.ssm) .ssm-result__title { margin: 0 0 6px; font-family: var(--ssm-font); font-size: clamp(21px, 2vw, 26px); font-weight: 700; line-height: 1.2; color: var(--ssm-ink); }
:is(.ssm) .ssm-result__title a { color: var(--ssm-green-dark) !important; text-decoration: none !important; }
:is(.ssm) .ssm-result__title a::after { content: ""; position: absolute; inset: 0; }
:is(.ssm) .ssm-result__title a:hover { text-decoration: underline !important; text-decoration-color: var(--ssm-gold) !important; }
:is(.ssm) .ssm-result__title a:focus-visible { outline-offset: -3px; }
.ssm-result p { margin: 0; color: var(--ssm-muted); }
.ssm-pager li { margin: 0; }
.ssm-pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 2px; background: var(--ssm-beige); color: var(--ssm-ink) !important; font-weight: 600; text-decoration: none !important; }
.ssm-pager .page-numbers.current, .ssm-pager a.page-numbers:hover { background: var(--ssm-green-dark); color: #fff !important; }
.ssm-back { margin-top: 2.2em; }
.ssm-more--back .ssm-ico { transform: scaleX(-1); }

/* Pages intérieures : espace pour le dock mobile. */
@media (max-width: 1099.98px) {
	.ssm-ph { padding-top: 150px; }
}

/* ---------- Éditeur ---------- */
.ssm-editor-block { position: relative; }
.ssm-editor-block__label { position: absolute; z-index: 50; top: 8px; right: 8px; background: var(--ssm-ink); color: #fff; font: 600 12px/1.4 var(--ssm-font); padding: 4px 10px; border-radius: 2px; pointer-events: none; }
.editor-styles-wrapper .ssm-hero { height: 720px; min-height: 0; }
.editor-styles-wrapper .ssm-info__slider { margin-right: 0; }

/* ==========================================================================
   Bergues : titres en Familjen Grotesk 600 (interlettrage serré), petits mots en Caveat
   (cf. maquette « Ville de Bergues – Accueil »).
   ========================================================================== */
:is(.ssm, .editor-styles-wrapper) :is(h1, h2, h3, .ssm-title, .ssm-terr__name, .ssm-fcol__name, .ssm-partners__t),
:is(.ssm, .editor-styles-wrapper) .ssm-alert__body h2,
.ssm.ssm-has-ph .entry-content :is(h2, h3) {
	font-family: var(--ssm-display);
	font-weight: 600;
	letter-spacing: -.035em;
}
.ssm-mega__accent,
.ssm-terr__acc,
.ssm-alert__script,
:is(.ssm, .editor-styles-wrapper) [class*="__script"],
:is(.ssm, .editor-styles-wrapper) [class*="__accent"] {
	font-family: var(--ssm-script);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}
