/* Feuille commune regroupée par outils/construire_css.py : NE PAS MODIFIER À LA MAIN, modifier les sources puis relancer le script. */

/* ---- grille réduite (Bootstrap Grid 4.3.1, licence MIT, classes employées seulement) ---- */
html{box-sizing:border-box;-ms-overflow-style:scrollbar}*,::after,::before{box-sizing:inherit}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.col,.col-lg-12,.col-lg-4,.col-lg-8,.col-md-10,.col-md-12,.col-md-3,.col-md-6{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;max-width:100%}@media (min-width:768px){.col-md-3{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-md-6{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-md-10{-ms-flex:0 0 83.333333%;flex:0 0 83.333333%;max-width:83.333333%}.col-md-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.offset-md-1{margin-left:8.333333%}}@media (min-width:992px){.col-lg-4{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}.col-lg-8{-ms-flex:0 0 66.666667%;flex:0 0 66.666667%;max-width:66.666667%}.col-lg-12{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}}.d-flex{display:-ms-flexbox!important;display:flex!important}.align-items-center{-ms-flex-align:center!important;align-items:center!important}

/* ---- fonts.css ---- */
/* Polices hébergées localement (SM4B, 2026-11-18, reprises de l'ancien thème). Sources : Roboto (Apache 2.0), Muli (OFL). */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/google/roboto-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/google/roboto-latin.woff2') format('woff2');
  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: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/google/roboto-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/google/roboto-latin.woff2') format('woff2');
  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: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/google/roboto-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/google/roboto-latin.woff2') format('woff2');
  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: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/google/roboto-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/google/roboto-latin.woff2') format('woff2');
  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: 'Muli';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/google/muli-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/google/muli-latin.woff2') format('woff2');
  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: 'Muli';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/google/muli-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/google/muli-latin.woff2') format('woff2');
  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: 'Muli';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/google/muli-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/google/muli-latin.woff2') format('woff2');
  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: 'Muli';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/google/muli-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/google/muli-latin.woff2') format('woff2');
  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: 'Muli';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/google/muli-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/google/muli-latin.woff2') format('woff2');
  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;
}

/* Gilroy Bold (titres). Hébergée dans le thème ; licence à confirmer (question en attente chez Pierre-Marie). */
@font-face {
  font-family: 'Gilroy';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Gilroy-Bold.woff') format('woff');
}

/* ---- tokens.css ---- */
/*
 * Variables de la charte SM4B 2026. Source : le canevas du Designer (studio/reference-canevas/) et le § 7 de
 * coordination/studio-socle-technique.md. Mode clair seulement : le mode sombre attend, il redéfinira les mêmes noms.
 * Aucune valeur de couleur, de taille ou d'espacement ailleurs dans le thème : tout passe par ces variables.
 */
:root {
	/* Couleurs */
	--c-fond: #ffffff;
	--c-fond-gris: #f8f9fb;
	--c-fond-pale: #eef1fa;
	--c-surface: #ffffff;
	--c-filet: #dde1ec;
	--c-filet-champ: #8a90a6;
	--c-titre: #1d2340;
	--c-texte: #3a4057;
	--c-texte-2: #5e6478;
	--c-lien: #3f4d9e;
	--c-marque: #3f4d9e;
	--c-nuit: #162a59;
	--c-accent: #ffc53d;
	--c-accent-survol: #f2b01e;
	--c-accent-pale: #fff6dd;
	--c-sur-marque: #ffffff;
	--c-reussi: #12805c;
	--c-reussi-fond: #e4f3ec;
	--c-echoue: #b4441c;
	--c-echoue-fond: #fbe9e1;
	--c-echoue-texte: #9a3712;
	--c-segment-avant: #c4623a;
	--c-reussi-texte: #0e6b4c;
	--c-non-mesure: #32468b;
	--c-non-mesure-fond: #eef1fa;
	--c-jauge: #e6e9f2;
	--c-voile-marque: rgba(255, 255, 255, 0.16);

	/* Typographie */
	--police-titre: 'Gilroy', 'Helvetica Neue', Arial, sans-serif;
	--police-texte: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
	--police-interface: 'Muli', 'Helvetica Neue', Arial, sans-serif;
	--t-page: 3rem;
	--t-section: 2.5rem;
	--t-sous-titre: 1.75rem;
	--t-titre-carte: 1.5rem;
	--t-carte: 1.25rem;
	--t-chapeau: 1.25rem;
	--t-texte: 1.0625rem;
	--t-petit: 0.9375rem;
	--t-mini: 0.875rem;
	--i-page: 1.125;
	--i-section: 1.2;
	--i-sous-titre: 1.25;
	--i-carte: 1.3;
	--i-chapeau: 1.55;
	--i-texte: 1.6;
	--i-petit: 1.55;
	--i-mini: 1.45;
	--approche-titre: -0.03125rem;

	/* Échelle d'espacement : 4, 8, 12, 16, 24, 32, 48, 64 px, puis 96 px pour les sections */
	--e-1: 0.25rem;
	--e-2: 0.5rem;
	--e-3: 0.75rem;
	--e-4: 1rem;
	--e-5: 1.5rem;
	--e-6: 2rem;
	--e-7: 3rem;
	--e-8: 4rem;
	--section: 6rem;
	--section-tel: 3.5rem;

	/* Formes : quatre rayons (4 boutons, champs, pastilles ; 8 cartes, tableaux ; 12 blocs d'outils, cadres de copie d'écran, cartes sur le bleu ; 16 photos et blocs de trame) */
	--rayon-1: 0.25rem;
	--rayon-2: 0.5rem;
	--rayon-3: 0.75rem;
	--rayon-4: 1rem;
	--largeur: 71.25rem;
	--lecture: 46rem;
	--lecture-contenu: 52rem;
	--filet-epaisseur: 1px;
	--filet-fort: 2px;
	--ombre-survol: 0 8px 24px rgba(29, 35, 64, 0.12);
	--focus: 0 0 0 3px #ffffff, 0 0 0 5px #3f4d9e;
	--motif-points: radial-gradient(var(--c-voile-marque) 1.5px, transparent 1.6px);
	--motif-taille: 18px 18px;

	/* Composants */
	--h-bouton: 3.25rem;
	--h-bouton-petit: 2.75rem;
	--h-bouton-grand: 3.5rem;
	--h-champ: 3rem;
	--h-cible: 2.75rem;
}

@media (max-width: 767.98px) {
	:root {
		--section: var(--section-tel);
		--t-page: 2rem;
		--t-section: 1.75rem;
		--t-sous-titre: 1.5rem;
		--t-titre-carte: 1.25rem;
		--t-chapeau: 1.125rem;
		--t-texte: 1rem;
	}
}

/* ---- base.css ---- */
/* Base : texte, titres, liens, focus, tableaux, images. La grille vient de bootstrap-grid.min.css. */
html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--c-fond);
	color: var(--c-texte);
	font-family: var(--police-texte);
	font-size: var(--t-texte);
	font-weight: 400;
	line-height: var(--i-texte);
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--e-4);
	color: var(--c-titre);
	font-family: var(--police-titre);
	font-weight: 700;
	letter-spacing: var(--approche-titre);
}

h1 { font-size: var(--t-page); line-height: var(--i-page); }
h2 { font-size: var(--t-section); line-height: var(--i-section); }
h3 { font-size: var(--t-titre-carte); line-height: var(--i-sous-titre); }
h4 { font-size: var(--t-carte); line-height: var(--i-carte); }
h5, h6 { font-size: var(--t-texte); line-height: var(--i-carte); }

p, ul, ol, table, figure, blockquote { margin: 0 0 var(--e-4); }

a {
	color: var(--c-lien);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}
a:hover { color: var(--c-nuit); }

:focus-visible {
	outline: var(--filet-fort) solid transparent;
	box-shadow: var(--focus);
}

img, svg { max-width: 100%; }
img { height: auto; }

strong, b { font-weight: 700; }

code {
	font-size: 0.9em;
	background: var(--c-fond-pale);
	border-radius: var(--rayon-1);
	padding: 0 var(--e-1);
}

hr {
	border: 0;
	border-top: var(--filet-epaisseur) solid var(--c-filet);
	margin: var(--e-6) 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---- layout.css ---- */
/* Mise en page : en-tête, navigation, bandeau de titre, bandeau d'appel, pied de page. */

/* En-tête */
.sm4b-header {
	background: var(--c-fond);
	border-bottom: var(--filet-epaisseur) solid var(--c-filet);
	padding: var(--e-3) var(--e-5);
}

.sm4b-header__interieur {
	max-width: var(--largeur);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--e-3) var(--e-6);
}

.sm4b-logo {
	display: block;
	flex: none;
	line-height: 0;
}
.sm4b-logo__image { display: block; width: 10rem; height: auto; }
.sm4b-logo__texte {
	font-family: var(--police-titre);
	font-size: var(--t-sous-titre);
	color: var(--c-titre);
	line-height: var(--i-sous-titre);
}

.sm4b-nav__liste {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--e-1) var(--e-5);
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--police-interface);
	font-weight: 700;
	font-size: var(--t-petit);
}
.sm4b-nav__liste a {
	display: inline-flex;
	align-items: center;
	min-height: var(--h-cible);
	color: var(--c-titre);
	text-decoration: none;
}
.sm4b-nav__liste a:hover { color: var(--c-lien); text-decoration: underline; text-underline-offset: 0.35em; }
/* Page courante : soulignée de jaune (planche du gabarit) */
.sm4b-nav__liste .current-menu-item > a,
.sm4b-nav__liste .current_page_item > a { box-sizing: border-box; color: var(--c-lien); border-bottom: 3px solid var(--c-accent); }
.sm4b-nav__liste > li:last-child > a {
	box-sizing: border-box;
	padding: var(--e-2) var(--e-4);
	border: var(--filet-fort) solid var(--c-lien);
	border-radius: var(--rayon-1);
	color: var(--c-lien);
	font-weight: 800;
	text-decoration: none;
}
.sm4b-nav__liste > li:last-child > a:hover { background: var(--c-fond-pale); }

/* Sous-menus du menu existant : liste déroulante au survol et au clavier sur grand écran, à plat sur téléphone */
.sm4b-nav__liste li { position: relative; }
.sm4b-nav__liste .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 14rem;
	margin: 0;
	padding: var(--e-2);
	list-style: none;
	background: var(--c-fond);
	border: var(--filet-epaisseur) solid var(--c-filet);
	border-radius: var(--rayon-2);
	box-shadow: var(--ombre-survol);
}
.sm4b-nav__liste li:hover > .sub-menu,
.sm4b-nav__liste li:focus-within > .sub-menu { display: block; }
.sm4b-nav__liste .sub-menu a { display: flex; padding: var(--e-1) var(--e-3); font-weight: 700; white-space: nowrap; }

.sm4b-nav__bouton {
	display: none;
	min-height: var(--h-cible);
	padding: var(--e-2) var(--e-4);
	background: var(--c-fond);
	border: var(--filet-fort) solid var(--c-lien);
	border-radius: var(--rayon-1);
	color: var(--c-lien);
	font-family: var(--police-interface);
	font-weight: 800;
	font-size: var(--t-petit);
	cursor: pointer;
}

.sm4b-header__tel {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: var(--h-cible);
	min-height: var(--h-cible);
}
.sm4b-header__tel .sm4b-icone { width: var(--e-5); height: var(--e-5); stroke-width: 2.75; }

@media (max-width: 991.98px) {
	.sm4b-header__interieur { flex-wrap: wrap; gap: var(--e-3); }
	.sm4b-header__tel { display: inline-flex; order: 1; margin-left: auto; }
	.sm4b-nav__bouton { order: 2; }
	.sm4b-nav { order: 3; }
	/* Le menu ne se replie que si le JavaScript est là : sans lui, la navigation reste visible. */
	.sm4b-js .sm4b-nav__bouton { display: inline-flex; align-items: center; }
	.sm4b-js .sm4b-nav { display: none; flex-basis: 100%; }
	.sm4b-js .sm4b-nav.sm4b-nav--ouverte { display: block; }
	.sm4b-nav__liste { flex-direction: column; align-items: flex-start; }
	.sm4b-nav__liste .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 0 var(--e-4); border: 0; box-shadow: none; }
}

/* Bandeau de titre des pages ordinaires */
.sm4b-titre-page {
	background-color: var(--c-marque);
	background-image: var(--motif-points);
	background-size: var(--motif-taille);
	padding: var(--e-8) var(--e-5);
	color: var(--c-sur-marque);
}
.sm4b-titre-page h1 { color: var(--c-sur-marque); margin-bottom: var(--e-3); }
.sm4b-titre-page p { color: var(--c-sur-marque); font-size: var(--t-chapeau); font-weight: 300; line-height: var(--i-chapeau); max-width: var(--lecture); margin: 0 auto; }

/* Fil d'Ariane */
#breadcrumb { background: var(--c-fond-gris); padding: var(--e-3) 0; font-size: var(--t-petit); }
#breadcrumb ol, #breadcrumb ul { list-style: none; margin: 0; padding: 0; }
#breadcrumb nav, #breadcrumb .breadcrumb { margin: 0; }
#breadcrumb a { color: var(--c-lien); }

/* Contenu des pages ordinaires et des articles */
.sm4b-contenu,
.sm4b-article,
.sm4b-liste-articles,
.sm4b-contact { padding: var(--section) 0; }
.sm4b-contenu { background: var(--c-fond); }
.sm4b-liste-articles { background: var(--c-fond-gris); }

/* Bandeau d'appel du pied de page */
.sm4b-bandeau {
	background-color: var(--c-marque);
	background-image: var(--motif-points);
	background-size: var(--motif-taille);
	color: var(--c-sur-marque);
	padding: var(--e-8) 0;
}
.sm4b-bandeau p { margin: 0; color: var(--c-sur-marque); }
.sm4b-bandeau .sm4b-bandeau__titre {
	margin-bottom: var(--e-2);
	font-family: var(--police-titre);
	font-size: var(--t-sous-titre);
	line-height: var(--i-sous-titre);
}

/* Pied de page */
.sm4b-pied { background: var(--c-nuit); color: var(--c-sur-marque); padding: var(--e-8) 0 var(--e-6); }
.sm4b-pied a { color: var(--c-sur-marque); }
.sm4b-pied a:hover { color: var(--c-accent); }
.sm4b-pied p, .sm4b-pied li { color: var(--c-sur-marque); font-size: var(--t-petit); line-height: var(--i-petit); }
.sm4b-pied ul { list-style: none; padding: 0; }
.sm4b-pied .sm4b-pied__titre {
	margin-bottom: var(--e-3);
	font-family: var(--police-titre);
	font-size: var(--t-carte);
	line-height: var(--i-carte);
}
.sm4b-pied #middle-footer, .sm4b-pied .sm4b-pied__bas { margin-top: var(--e-6); }
.sm4b-pied .sm4b-pied__bas { padding-top: var(--e-5); border-top: var(--filet-epaisseur) solid var(--c-voile-marque); }
.sm4b-pied__liste { display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-5); margin: 0; }
.sm4b-pied__liste p { margin: 0; }
.sm4b-reseaux { display: flex; justify-content: flex-end; gap: var(--e-4); margin: 0; padding: 0; list-style: none; }
.sm4b-reseaux a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--h-cible); min-height: var(--h-cible); }
.sm4b-reseaux .sm4b-icone { width: var(--e-5); height: var(--e-5); stroke: currentColor; }
@media (max-width: 991.98px) {
	.sm4b-reseaux { justify-content: flex-start; }
	.sm4b-pied .col-lg-4.text-right { text-align: left; }
}

/* Lien d'évitement : visible au clavier seulement */
.sm4b-lien-evitement {
	position: absolute;
	left: var(--e-4);
	top: -10rem;
	z-index: 100;
	padding: var(--e-3) var(--e-4);
	background: var(--c-nuit);
	color: var(--c-sur-marque);
	border-radius: var(--rayon-1);
	font-family: var(--police-interface);
	font-weight: 800;
}
.sm4b-lien-evitement:focus { top: var(--e-2); }

.sm4b-pied address { margin: 0 0 var(--e-4); font-style: normal; font-size: var(--t-petit); line-height: var(--i-petit); }
.sm4b-chapeau { font-size: var(--t-chapeau); line-height: var(--i-chapeau); }

/* Entre 992 et 1199 px : huit entrées de menu et le logo tiennent sur une seule ligne */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.sm4b-header__interieur { gap: var(--e-3) var(--e-4); flex-wrap: nowrap; }
	.sm4b-logo__image { width: 8rem; }
	.sm4b-nav__liste { gap: var(--e-1) var(--e-4); font-size: var(--t-mini); }
	.sm4b-nav__liste > li:last-child > a { padding: var(--e-2) var(--e-3); }
}

/* ==== Nouveau menu principal : parents en vrais liens, flèche, filet entre services et agences, Échap, accordéon sur téléphone, numéro à côté de Contact ==== */
.sm4b-nav__liste .menu-item-has-children > a::after { content: ""; display: inline-block; width: 0.4375rem; height: 0.4375rem; margin-left: 0.5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-0.15em); }
.sm4b-nav__liste li.sm4b-sous--ferme > .sub-menu { display: none !important; }
.sm4b-nav__liste .sub-menu .sm4b-menu-sep { margin-top: var(--e-2); padding-top: var(--e-2); border-top: var(--filet-epaisseur) solid var(--c-filet); }
.sm4b-nav__sous-bouton { display: none; }
.sm4b-header__tel-numero { display: none; font-family: var(--police-interface); font-weight: 800; font-size: var(--t-petit); color: var(--c-titre); white-space: nowrap; }
@media (min-width: 992px) { .sm4b-header__tel { gap: var(--e-2); } .sm4b-header__tel-numero { display: inline; } }
@media (max-width: 991.98px) {
	.sm4b-nav__liste .menu-item-has-children > a::after { display: none; }
	.sm4b-nav__liste .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; width: 100%; }
	.sm4b-nav__liste .menu-item-has-children > a { flex: 1 1 auto; }
	.sm4b-js .sm4b-nav__sous-bouton { display: inline-flex; align-items: center; justify-content: center; width: var(--h-cible); height: var(--h-cible); background: none; border: 0; cursor: pointer; color: var(--c-titre); }
	.sm4b-nav__sous-bouton::before { content: ""; width: 0.5rem; height: 0.5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
	.sm4b-nav__sous-bouton[aria-expanded="true"]::before { transform: rotate(-135deg); }
	.sm4b-js .sm4b-nav__liste .sub-menu { display: none; flex-basis: 100%; }
	.sm4b-js .sm4b-nav__liste .sm4b-sous--ouvert > .sub-menu { display: block; }
	.sm4b-nav__liste .sub-menu .sm4b-menu-sep { margin-top: var(--e-2); padding-top: var(--e-2); border-top: var(--filet-epaisseur) solid var(--c-filet); }
}
@media (min-width: 992px) { .sm4b-header__tel { display: inline-flex; align-items: center; } .sm4b-header__tel .sm4b-icone { display: none; } }

/* ---- components.css ---- */
/* Composants : icônes, boutons, cartes, tableaux, formulaire, encadrés. */

/* Icônes (fichiers du dossier icons/, insérés en ligne par sm4b_icon) */
.sm4b-icone {
	width: var(--e-7);
	height: var(--e-7);
	flex: none;
	stroke: var(--c-lien);
}
.sm4b-icone__tache { fill: var(--c-accent); stroke: none; }
.sm4b-icone--interface { width: 1.125rem; height: 1.125rem; stroke: currentColor; }
.sm4b-icone--interface-petite { width: 1rem; height: 1rem; stroke: currentColor; }

/* Boutons : un seul bouton jaune par écran, l'action secondaire a le contour bleu */
.sm4b-bouton,
.btn-primary,
.wp-block-button__link,
.sm4b-actions strong a,
.sm4b-bouton-principal a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--e-2);
	box-sizing: border-box;
	min-height: var(--h-bouton);
	padding: var(--e-3) calc(var(--e-5) + var(--e-1));
	background: var(--c-accent);
	color: var(--c-nuit);
	border: var(--filet-fort) solid var(--c-accent);
	border-radius: var(--rayon-1);
	font-family: var(--police-interface);
	font-weight: 800;
	font-size: var(--t-texte);
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.sm4b-bouton:hover,
.btn-primary:hover,
.sm4b-actions strong a:hover,
.sm4b-bouton-principal a:hover {
	background: var(--c-accent-survol);
	border-color: var(--c-accent-survol);
	color: var(--c-nuit);
}
.sm4b-bouton:focus-visible,
.sm4b-actions a:focus-visible { background: var(--c-accent-survol); }

.sm4b-bouton-principal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-3) var(--e-4); }
.sm4b-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-3) var(--e-5); margin: var(--e-2) 0 0; font-size: 0; }
.sm4b-actions > a,
.sm4b-actions > strong,
.sm4b-actions > br { font-size: var(--t-texte); }
.sm4b-actions > a {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: var(--h-bouton);
	padding: var(--e-3) calc(var(--e-5) + var(--e-1));
	border: var(--filet-fort) solid var(--c-lien);
	border-radius: var(--rayon-1);
	background: var(--c-fond);
	color: var(--c-lien);
	font-family: var(--police-interface);
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}
.sm4b-intro .sm4b-actions > a { background: transparent; color: var(--c-sur-marque); border-color: var(--c-sur-marque); }
.sm4b-intro .sm4b-actions > a:hover { background: var(--c-voile-marque); color: var(--c-sur-marque); }

/* Cartes d'articles (les cartes de piliers sont dans blocks.css) */
.sm4b-carte-article {
	background: var(--c-surface);
	border: var(--filet-epaisseur) solid var(--c-filet);
	border-radius: var(--rayon-2);
	overflow: hidden;
	margin-bottom: var(--e-6);
}
.sm4b-carte-article:hover { box-shadow: var(--ombre-survol); }
.sm4b-carte-article__image { display: block; line-height: 0; }
.sm4b-carte-article__image img { width: 100%; }
.sm4b-carte-article__titre { margin: var(--e-4) var(--e-5) var(--e-2); font-size: var(--t-carte); }
.sm4b-carte-article__titre a { color: var(--c-titre); text-decoration: none; }
.sm4b-carte-article__titre a:hover { color: var(--c-lien); text-decoration: underline; }
.sm4b-carte-article__texte { margin: 0 var(--e-5) var(--e-5); color: var(--c-texte-2); font-size: var(--t-petit); line-height: var(--i-petit); }

/* Tableaux : en-tête bleu, filets, défilement horizontal dans le cadre */
.wp-block-table,
.sm4b-tableau { overflow-x: auto; margin: 0 0 var(--e-5); border: var(--filet-epaisseur) solid var(--c-filet); border-radius: var(--rayon-2); background: var(--c-surface); }
.wp-block-table table,
.sm4b-tableau table { width: 100%; min-width: 40rem; margin: 0; border-collapse: collapse; font-size: var(--t-petit); line-height: var(--i-petit); }
.wp-block-table th, .wp-block-table td { padding: var(--e-4) var(--e-5); text-align: left; vertical-align: top; border: 0; border-top: var(--filet-epaisseur) solid var(--c-filet); }
.wp-block-table thead th {
	background: var(--c-marque);
	color: var(--c-sur-marque);
	border-top: 0;
	font-family: var(--police-interface);
	font-weight: 700;
	font-size: var(--t-petit);
}
.wp-block-table tbody td { font-variant-numeric: tabular-nums; }
.wp-block-table tbody tr:first-child td, .wp-block-table tbody tr:first-child th { border-top: 0; }
.wp-block-table figcaption { padding: var(--e-3) var(--e-5); color: var(--c-texte-2); font-size: var(--t-mini); }

/* Formulaire de contact */
.contact-form label { display: block; margin-bottom: var(--e-1); font-family: var(--police-interface); font-weight: 700; font-size: var(--t-petit); color: var(--c-titre); }
.contact-form .screen-reader-text { position: absolute; }
.form-control {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: var(--h-champ);
	margin-bottom: var(--e-4);
	padding: 0 var(--e-3);
	background: var(--c-fond);
	border: var(--filet-epaisseur) solid var(--c-filet-champ);
	border-radius: var(--rayon-1);
	color: var(--c-titre);
	font-family: var(--police-texte);
	font-size: var(--t-texte);
}
textarea.form-control { padding: var(--e-3); min-height: 9rem; }
.form-control:focus { border-width: var(--filet-fort); }
.form-control[aria-invalid="true"] { border: var(--filet-fort) solid var(--c-echoue); }
.sm4b-mention { color: var(--c-texte-2); font-size: var(--t-petit); line-height: var(--i-petit); }

/* Messages du formulaire (mu-plugin sm4b-contact) */
.alert { margin-bottom: var(--e-4); padding: var(--e-4) var(--e-5); border-radius: var(--rayon-2); border: var(--filet-epaisseur) solid var(--c-filet); font-size: var(--t-petit); }
.alert-success { background: var(--c-reussi-fond); color: var(--c-reussi); border-color: var(--c-reussi); }
.alert-danger { background: var(--c-echoue-fond); color: var(--c-echoue-texte); border-color: var(--c-echoue); }
.alert-warning { background: var(--c-accent-pale); color: var(--c-nuit); border-color: var(--c-accent); }

.contacts-info .contact-box { margin-bottom: var(--e-5); padding: var(--e-5); background: var(--c-fond-gris); border-radius: var(--rayon-2); }
.contacts-info .contact-box__titre { margin: 0 0 var(--e-2); color: var(--c-titre); font-family: var(--police-titre); font-weight: 700; font-size: var(--t-texte); line-height: var(--i-carte); letter-spacing: var(--approche-titre); }
.contacts-info .contact-box__titre strong { font-weight: inherit; }

/* Champ piège du formulaire de contact (la feuille du mu-plugin porte la même règle de secours) */
.sm4b-contact__piege { position: absolute; left: -9999px; }

/* Boutons des contenus existants (classes Bootstrap et Flaticon de l'ancien thème, 5 pages) : même bouton jaune, sans la police d'icônes disparue */
.cta-primary { display: inline-block; margin: var(--e-2) 0; }
.btn-primary i[class*="flaticon-"], .btn i[class*="flaticon-"] { display: none; }

/* Réserver une visio : un seul composant, une seule classe (.sm4b-bouton--visio), sur tout le site. Action secondaire : contour ; le bouton jaune reste l'action principale.
   Fond clair : contour et texte bleu ; fonds sombres (bande bleue ou nuit, bandeau, en-tête) : contour et texte blancs. */
.sm4b-bouton--visio { background: transparent; color: var(--c-marque); border-color: var(--c-marque); }
.sm4b-bouton--visio:hover { background: var(--c-marque); border-color: var(--c-marque); color: var(--c-sur-marque); }
.sm4b-bande--bleu .sm4b-bouton--visio, .sm4b-bande--nuit .sm4b-bouton--visio, .sm4b-bandeau .sm4b-bouton--visio, .sm4b-titre-page .sm4b-bouton--visio { color: var(--c-sur-marque); border-color: var(--c-sur-marque); }
.sm4b-bande--bleu .sm4b-bouton--visio:hover, .sm4b-bande--nuit .sm4b-bouton--visio:hover, .sm4b-bandeau .sm4b-bouton--visio:hover, .sm4b-titre-page .sm4b-bouton--visio:hover { background: var(--c-voile-marque); color: var(--c-sur-marque); border-color: var(--c-sur-marque); }

/* Les boutons « Réserver ma visio » du contenu des pages services et agences (a.btn-primary portant l'icône calendrier) prennent l'habillage de la visio : encadré, jamais jaune.
   Habillage seulement : le contenu, le libellé et le balisage de ces pages ne sont pas modifiés. */
.btn-primary:has(.flaticon-024-calendar) { background: transparent; color: var(--c-marque); border-color: var(--c-marque); }
.btn-primary:has(.flaticon-024-calendar):hover { background: var(--c-marque); border-color: var(--c-marque); color: var(--c-sur-marque); }
