/* Mémento des avantages sociaux - styles communs à la page d'accueil et aux pages des fiches */

/* Police de titre de la charte HELMo (licence commerciale) : déposer le fichier dans fonts/cocogoose-pro/.
   Tant qu'il est absent, Poppins prend le relais. */
@font-face {
	font-family: "Cocogoose Pro";
	font-weight: 500;
	font-display: swap;
	src: url("fonts/cocogoose-pro/cocogoose-pro-medium.woff2") format("woff2");
}
:root {
	--police-titres: "Cocogoose Pro", "Poppins", sans-serif;
	--police-texte: "Open Sans", "Arial Narrow", sans-serif;
	--helmo-nuit: #1f1c3e;
	--helmo-magenta: #ae2d78;
	--helmo-texte: #515061;
	--esas-vert: #bed549; /* couleur du département social */
	--arrondi: 1.5rem;
	--ombre: 0 2px 6px rgba(31,28,62,.05), 0 14px 34px -14px rgba(31,28,62,.18);
	/* Volutes en SVG (remplacent vague_haut.png et vague_bas.png : plus nettes, sans requête) */
	--vague-haut: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 365'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%239fbb17'/%3E%3Cstop offset='.45' stop-color='%23bed549'/%3E%3Cstop offset='1' stop-color='%23e6efb4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 0H642C630 60 622 150 565 192C520 226 468 222 400 250C330 280 262 345 172 352C100 358 50 326 0 320Z'/%3E%3Cpath fill='none' stroke='%23dfe8a6' stroke-width='1.5' d='M0 292C60 305 150 330 240 322C320 312 382 242 470 222C560 204 645 168 690 0'/%3E%3C/svg%3E");
	--vague-bas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 825 251'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23bed549'/%3E%3Cstop offset='1' stop-color='%23eef3cc'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='none' stroke='url(%23b)' stroke-width='44' d='M45 251C80 160 160 135 270 122C400 107 460 62 540 40C620 18 720 32 825 48'/%3E%3Cpath fill='none' stroke='%23bed549' stroke-width='2' d='M285 251C350 210 400 160 430 100C460 42 560 40 650 70C740 100 810 150 825 200'/%3E%3C/svg%3E");
}
body {
    font-family: var(--police-texte);
	font-stretch: 75%; /* = Open Sans Condensed */
	color: var(--helmo-texte);
	font-size: 1.125rem;
	line-height: 1.6;
	min-height: 100vh;
	/* Footer calé en bas de l'écran quand le contenu est court (grands écrans) */
	display: flex;
	flex-direction: column;
	/* Volute du bas + halos flous très légers (vert du département, magenta HELMo) */
	background:
		var(--vague-bas) no-repeat right bottom / 650px auto,
		radial-gradient(ellipse 50% 45% at 90% 20%, rgba(190,213,73,.32), transparent 70%),
		radial-gradient(ellipse 40% 30% at 50% 75%, rgba(190,213,73,.14), transparent 70%),
		radial-gradient(ellipse 40% 45% at 5% 70%, rgba(174,45,120,.11), transparent 70%),
		#fff;
}
body > .vague1 {
	flex: 1 0 auto;
}
h1 {
	font-family: var(--police-titres);
	color: var(--helmo-nuit);
	font-weight: 500;
}
	:is(.modal-header, .fiche-entete) .modale-titre{
		color:#fff;
	}
h1.display-4 {
    font-weight: 500;
}
h1 span {
	font-size:2rem;
	font-weight: normal;
	color: var(--helmo-magenta);
}

h2, h3, h4{
	font-family: var(--police-texte);
	font-weight: 700;
	line-height: 1.25;
	}
h2{
	font-family: var(--police-titres);
	font-weight: 500;
	font-size: 1.6rem;
	padding-top:20px;
	}
h3{
	font-size: 1.35rem;
}
h4{
	font-size: 1.2rem;
	}
h3, h4{
		padding-top:10px;
		padding-bottom:10px;
	}
.logo{
		width: 180px;
	}
.vague1 {
	background-image: var(--vague-haut);
    background-repeat: no-repeat;
    background-position: top left;
	background-size: 550px;
}
.marges{
	padding-left:100px;
	padding-right:100px;

	}
img {
    max-width: 100%;
}
a {
	color: var(--helmo-texte); /* #a7a7a7 trop clair (contraste 2,4) */
	text-decoration: underline;
	text-underline-offset: 2px;
}
table{
	font-size:0.9rem;
}

.couleur2, .titres-couleur2 h2, .titres-couleur2 h3{
		color:#5baf35;
}
.couleur3, .titres-couleur3 h2, .titres-couleur3 h3{
		color:#2b9da8;
}
.couleur4, .titres-couleur4 h2, .titres-couleur4 h3{
		color:#444b99;
}
.couleur5, .titres-couleur5 h2, .titres-couleur5 h3{
		color:#3a2767;
}
.couleur6, .titres-couleur6 h2, .titres-couleur6 h3{
		color:#784197;
}
.couleur7, .titres-couleur7 h2, .titres-couleur7 h3{
		color:#b31a58;
}
.couleur8, .titres-couleur8 h2, .titres-couleur8 h3{
		color:#e23182;
}
.couleur9, .titres-couleur9 h2, .titres-couleur9 h3{
		color:#e97d32;
}
.couleur10, .titres-couleur10 h2, .titres-couleur10 h3{
		color:#f7b418;
}
.couleur11, .titres-couleur11 h2, .titres-couleur11 h3{
		color:#bed549;
}
.couleur1, .titres-couleur1 h2, .titres-couleur1 h3{
		color:#646263;
}

.bg2{
		background-color:#55a431;
}
.bg3{
		background-color:#2b9da8;
}
.bg4{
		background-color:#444b99;
}
.bg5{
		background-color:#3a2767;
}
.bg6{
		background-color:#784197;
}
.bg7{
		background-color:#b31a58;
}
.bg8{
		background-color:#e23182;
}
.bg9{
		background-color:#dd762f;
}
.bg10{
		background-color:#f7b418;
}
.bg11{
		background-color:#bed549;
}
.bg1{
		background-color:#646263;
}




table {
  border-collapse: collapse;
	margin-top:30px;
	margin-bottom:30px;
	width: 100%;
}
td {
	border: 2px solid #ddd;
	padding:10px;
}
/* Contenu des fenêtres : couleur de texte lisible par catégorie (contraste >= 4,5)
   --lien sert aux intertitres et aux liens */
.titres-couleur1 { --lien:#646263; }
.titres-couleur2 { --lien:#448327; }
.titres-couleur3 { --lien:#238089; }
.titres-couleur4 { --lien:#444b99; }
.titres-couleur5 { --lien:#3a2767; }
.titres-couleur6 { --lien:#784197; }
.titres-couleur7 { --lien:#b31a58; }
.titres-couleur8 { --lien:#d62e7b; }
.titres-couleur9 { --lien:#b15e25; }
.titres-couleur10 { --lien:#966d0e; }
.titres-couleur11 { --lien:#6e7b2a; }
.contenu h2, .contenu h3 {
	color: var(--lien);
}
/* Bandeaux jaune et vert clair : titre foncé plutôt que blanc */
.bg10 .modale-titre, .bg11 .modale-titre {
	color: #1a1a1a;
}
.bg10 .btn-close-white, .bg11 .btn-close-white {
	filter: none;
}

/* Icônes SVG (remplacent le kit Font Awesome : environ 210 Ko en moins) */
.icone {
	width: 1em;
	height: 1em;
	fill: currentColor;
	flex-shrink: 0;
}
/* Flèche Font Awesome éventuellement présente dans le contenu saisi */
.contenu i.fa-arrow-right::before {
	content: "";
	display: inline-block;
	width: .9em;
	height: .9em;
	vertical-align: -.1em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Tuiles des rubriques */
.tuiles {
	max-width: 1200px;
}
.tuile {
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .8rem;
	width: 100%;
	height: 100%;
	min-height: 11rem;
	padding: 1.5rem 1rem;
	background: #fff;
	border: 1px solid #ebeaf0;
	border-radius: var(--arrondi);
	box-shadow: var(--ombre);
	color: var(--helmo-nuit);
	font-family: var(--police-texte);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease;
}
.tuile:hover {
	transform: translateY(-4px);
	border-color: var(--lien);
	box-shadow: 0 4px 10px rgba(31,28,62,.06), 0 22px 40px -16px rgba(31,28,62,.28);
}
.tuile:focus-visible {
	outline: 3px solid var(--helmo-magenta);
	outline-offset: 3px;
}
.tuile-icone {
	display: grid;
	place-items: center;
	width: 4.75rem;
	height: 4.75rem;
	border-radius: 50%;
	background: color-mix(in srgb, currentColor 13%, #fff);
}
.tuile-icone .icone {
	width: 2.6rem;
	height: 2.3rem;
}
.tuile-titre {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	hyphens: auto;
	overflow-wrap: anywhere;
}
.estompe .tuile {
	opacity: .3;
}

/* Phrase de présentation sous le titre */
.accroche {
	margin: .75rem 0 0 auto;
	font-size: 1.2rem;
	line-height: 1.45;
	color: var(--helmo-texte);
}

/* Recherche */
.recherche {
	position: relative;
	max-width: 680px;
}
.recherche input {
	width: 100%;
	padding: .9rem 1.4rem .9rem 3.4rem;
	font-size: 1.2rem;
	color: var(--helmo-nuit);
	background: #fff;
	border: 2px solid #dcdbe3;
	border-radius: 999px;
	box-shadow: var(--ombre);
}
.recherche input::placeholder {
	color: #6b6a79;
}
.recherche input:focus {
	outline: none;
	border-color: var(--helmo-magenta);
	box-shadow: 0 0 0 4px rgba(174,45,120,.2), var(--ombre);
}
.recherche .icone {
	position: absolute;
	left: 1.3rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.25rem;
	height: 1.25rem;
	fill: var(--helmo-magenta);
	pointer-events: none;
}
.recherche-etat {
	min-height: 1.6em;
	margin: .75rem 0 0;
	font-size: 1rem;
}
.recherche-resultats {
	max-width: 820px;
	margin: 0 auto 1rem;
	padding: 0;
	list-style: none;
}
.recherche-resultats ul {
	padding: 0;
	list-style: none;
}
.recherche-resultats .resultat-rubrique {
	font-family: var(--police-texte);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--lien);
	padding-top: 1rem;
	margin-bottom: .5rem;
}
.resultat {
	display: block;
	width: 100%;
	margin-bottom: .5rem;
	padding: .7rem 1.1rem;
	text-align: left;
	line-height: 1.45;
	color: var(--helmo-texte);
	background: #fff;
	border: 1px solid #e4e3ea;
	border-left: 4px solid var(--lien);
	border-radius: .9rem;
}
.resultat:hover {
	border-color: var(--lien);
}
.resultat:focus-visible {
	outline: 3px solid var(--lien);
	outline-offset: 2px;
}
.resultat-section {
	display: block;
	font-weight: 700;
	color: var(--helmo-nuit);
}
.resultat mark {
	padding: 0 .1em;
	color: inherit;
	background: #f6dcea;
	border-radius: 3px;
}
.resultat-plus {
	font-weight: 600;
	color: var(--lien);
	background: none;
	border: 0;
	padding: .2rem 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}
/* Passage trouvé par la recherche, mis en évidence dans la fenêtre */
.contenu .cible {
	background: #fff3c4;
	box-shadow: 0 0 0 .4rem #fff3c4;
	border-radius: 2px;
}

/* Fenêtres des rubriques */
.modal-content {
	border: 0;
	border-radius: var(--arrondi);
	overflow: hidden;
}
.modal-header {
	padding: 1.25rem 1.75rem;
	border-bottom: 0;
}
:is(.modal-header, .fiche-entete) .modale-titre {
	display: flex;
	padding: 0;
	font-weight: 500;
	align-items: center;
	gap: .9rem;
	margin: 0;
	font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
}
.modal-body {
	padding: 1.25rem 1.75rem 1.75rem;
}

/* Page d'une fiche (fiche.php) */
.titre-site {
	margin: 0;
	font-family: var(--police-titres);
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.15;
}
.titre-site a {
	color: var(--helmo-nuit);
	text-decoration: none;
}
.titre-site span {
	font-size: .7em;
	color: var(--helmo-magenta);
}
.fil-ariane {
	margin-bottom: 1rem;
}
.fil-ariane a {
	display: inline-block;
	padding: .4rem 1.1rem;
	font-weight: 600;
	color: var(--helmo-nuit);
	text-decoration: none;
	background: #fff;
	border-radius: 999px;
	box-shadow: var(--ombre);
}
.fil-ariane a:hover {
	color: var(--helmo-magenta);
}
.fil-ariane a:focus-visible {
	outline: 3px solid var(--helmo-magenta);
	outline-offset: 2px;
}
.fiche-carte {
	overflow: hidden;
	background: #fff;
	border-radius: var(--arrondi);
	box-shadow: var(--ombre);
}
.fiche-entete {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.75rem;
}
.fiche-carte > .contenu {
	padding: 1.25rem 1.75rem 1.75rem;
}
.autres-rubriques {
	margin-top: 2.5rem;
}
.autres-rubriques h2 {
	padding-top: 0;
	font-size: 1.35rem;
	color: var(--helmo-nuit);
}
.autres-rubriques ul {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	padding: 0;
	list-style: none;
}
.autres-rubriques a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .45rem 1rem .45rem .5rem;
	font-weight: 600;
	color: var(--helmo-nuit);
	text-decoration: none;
	background: #fff;
	border: 1px solid #e4e3ea;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(31,28,62,.05);
}
.autres-rubriques a:hover {
	border-color: var(--lien);
}
.autres-rubriques a:focus-visible {
	outline: 3px solid var(--helmo-magenta);
	outline-offset: 2px;
}
.autres-rubriques .puce-icone {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: color-mix(in srgb, currentColor 13%, #fff);
}
.autres-rubriques .icone {
	width: 1.1rem;
	height: 1.1rem;
}

/* Contenu des fiches */
.sommaire {
	margin: .25rem 0 1.75rem;
	padding: 1rem 1.25rem 1.1rem;
	background: #f6f5f9;
	border-radius: 1rem;
}
.contenu .sommaire-titre {
	margin: 0 0 .6rem;
	padding: 0;
	font-family: var(--police-texte);
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--helmo-texte);
}
.sommaire ol {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.contenu .sommaire a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .3rem .9rem .3rem .35rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--helmo-nuit) !important;
	text-decoration: none;
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--lien) 35%, #fff);
	border-radius: 999px;
}
.contenu .sommaire a:hover {
	background: color-mix(in srgb, var(--lien) 10%, #fff);
	border-color: var(--lien);
}
.section-fiche {
	margin-top: 1.75rem;
	padding: 1.5rem 1.75rem .75rem;
	background: color-mix(in srgb, var(--lien) 4%, #fff);
	border: 1px solid color-mix(in srgb, var(--lien) 18%, #fff);
	border-radius: 1.25rem;
	scroll-margin-top: 1rem;
}
.contenu .section-fiche > h2 {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding-top: 0;
	margin-bottom: .75rem;
}
.section-num {
	display: inline-grid;
	place-items: center;
	flex-shrink: 0;
	min-width: 2.3rem;
	height: 2.3rem;
	padding: 0 .4rem;
	font-size: 1.15rem;
	color: #fff;
	background: var(--lien);
	border-radius: 999px;
}
.contenu .sommaire a .section-num {
	color: #fff !important;
	min-width: 1.75rem;
	height: 1.75rem;
	font-size: .9rem;
	font-family: var(--police-titres);
}
.contenu .sous-titre {
	display: flex;
	align-items: center;
	gap: .55rem;
	margin-top: .75rem;
	padding-bottom: .4rem;
}
.sous-titre .icone {
	width: 1.05em;
	height: 1.05em;
}
.tableau {
	overflow-x: auto;
	margin: 1.5rem 0;
}
.tableau table {
	margin: 0;
	min-width: 560px;
}
.fiche td {
	border: 1px solid #dddce4;
	vertical-align: top;
}
.fiche tr:nth-child(even) td {
	background: #f8f8fb;
}

/* Bouton Imprimer (fond blanc : lisible sur toutes les couleurs de bandeau) */
.btn-imprimer {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-left: auto;
	padding: .4rem .95rem;
	font-weight: 600;
	font-size: 1rem;
	color: var(--helmo-nuit);
	background: #fff;
	border: 0;
	border-radius: 999px;
	flex-shrink: 0;
}
.btn-imprimer:hover {
	background: #f1f0f5;
}
.btn-imprimer:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}
.modal-header .btn-close {
	margin-left: .9rem;
	flex-shrink: 0;
}

/* Liens dans les fenêtres : bien visibles, quel que soit le contenu collé */
.contenu a {
	color: var(--lien) !important;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
	border-radius: 2px;
}
.contenu a * {
	color: inherit !important;
}
.contenu a:hover {
	text-decoration-thickness: 2px;
	background-color: rgba(0,0,0,.05);
}
.contenu a:focus-visible {
	outline: 3px solid var(--lien);
	outline-offset: 2px;
}
/* Icône selon le type de lien (classes ajoutées par le script en bas de page) */
.contenu a.lien-ext::after,
.contenu a.lien-pdf::after,
.contenu a.lien-mail::after {
	content: "";
	display: inline-block;
	width: .85em;
	height: .85em;
	margin-left: .25em;
	vertical-align: -.05em;
	background-color: currentColor;
	-webkit-mask: var(--icone) no-repeat center / contain;
	mask: var(--icone) no-repeat center / contain;
}
.contenu a.lien-ext {
	--icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4 10 14M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
}
.contenu a.lien-pdf {
	--icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E");
}
.contenu a.lien-mail {
	--icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E");
}

/* footer */
footer {
	padding-top: 1.5rem;
}
.footer1{
	font-size: 1.15rem;
	font-family: var(--police-titres);
	font-weight: 500;
	line-height: 1.45;
	color: var(--helmo-nuit);
	margin-bottom: .6rem;
}
.footer2{
	font-family: var(--police-texte);
	color: var(--helmo-texte);
	font-size: 1.05rem;
}
.btn-apropos {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .6rem 1.4rem .6rem 1.1rem;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--helmo-magenta);
	background: #fff;
	border: 2px solid var(--helmo-magenta);
	border-radius: 999px;
	transition: background-color .2s ease, color .2s ease;
}
.btn-apropos .icone {
	width: 1.3em;
	height: 1.3em;
}
.btn-apropos:hover {
	color: #fff;
	background: var(--helmo-magenta);
}
.btn-apropos:focus-visible {
	outline: 3px solid var(--helmo-magenta);
	outline-offset: 3px;
}


/*  Classes diverses */
	.align-center	{

	text-align: center;
	}

/* grid ? */
.grid {
	display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-column-gap: 24px;
    grid-row-gap: 24px;
}
.column-4 {
    grid-column-end: span 4;
}

/* Impression d'une fiche : seule la fenêtre ouverte est imprimée, en entier */
@page {
	margin: 1.5cm;
}
@media print {
	body:has(.modal.show) > :not(.modal.show) {
		display: none !important;
	}
	body {
		display: block;
		background: none !important;
		font-size: 11pt;
	}
	.modal.show {
		position: static !important;
		display: block !important;
		overflow: visible !important;
	}
	.modal.show .modal-dialog {
		max-width: none !important;
		height: auto !important;
		margin: 0 !important;
		transform: none !important;
	}
	.modal.show .modal-content,
	.modal.show .modal-body {
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		border-radius: 0;
	}
	.modal.show .modal-header {
		padding: 0 0 .5rem;
		background: none !important;
		border-bottom: 2px solid #1f1c3e;
	}
	.modal.show .modale-titre {
		color: #1f1c3e !important;
	}
	.btn-imprimer, .modal .btn-close {
		display: none !important;
	}
	.modal.show .modal-body {
		padding: .75rem 0 0;
	}
	/* Sur papier : l'adresse des liens est écrite en clair */
	.contenu a.lien-ext::after,
	.contenu a.lien-pdf::after {
		content: " (" attr(href) ")";
		display: inline;
		width: auto;
		height: auto;
		margin: 0;
		font-weight: 400;
		font-size: .85em;
		background: none;
		-webkit-mask: none;
		mask: none;
	}
	.page-fiche :is(.vague1 > .container-fluid, .fil-ariane, .autres-rubriques, footer, .btn-imprimer) {
		display: none !important;
	}
	.page-fiche .vague1 {
		background: none;
	}
	.page-fiche .fiche-carte {
		box-shadow: none;
		border-radius: 0;
	}
	.page-fiche .fiche-entete {
		padding: 0 0 .5rem;
		background: none !important;
		border-bottom: 2px solid #1f1c3e;
	}
	.page-fiche .modale-titre {
		color: #1f1c3e !important;
	}
	.page-fiche .fiche-carte > .contenu {
		padding: .75rem 0 0;
	}
	.contenu::after {
		content: "Source : Mémento des avantages sociaux, HELMo ESAS - " attr(data-source);
		display: block;
		margin-top: 1.5rem;
		padding-top: .5rem;
		font-size: .85em;
		border-top: 1px solid #ccc;
	}
	.contenu h2, .contenu h3, .contenu h4 {
		break-after: avoid;
	}
	.sommaire {
		display: none;
	}
	.section-fiche {
		padding: 0;
		background: none;
		border: 0;
	}
	.tableau {
		overflow: visible;
	}
	.tableau table {
		min-width: 0;
	}
	.contenu li, .contenu p {
		break-inside: avoid;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tuile, .btn-apropos { transition: none; }
	.tuile:hover { transform: none; }
}

@media screen and (max-width: 1399px) { /* = xxl */
.logo{
	width: 200px;
	}
.vague1 {
	background-size: 500px;
	background-position: top left -20px;
}
.marges{
	padding-left:50px;
	padding-right:50px;
	}
	h1.display-4 {
    font-size: 2.6rem;
}
h1 span {
	font-size:1.5rem;
}
}

@media screen and (max-width: 1199px) { /* = xl */
.logo{
	width: 175px;
	}
.vague1 {
	background-size: 450px;
	background-position: top left -40px;
}
body {
	background-size: 500px auto, auto, auto, auto;
}
.marges{
	padding-left:35px;
	padding-right:35px;
	}


	}
@media screen and (max-width: 991px) { /* = lg */
h1.display-4 {
    font-size: 2rem;
}
h1 span {
	font-size:1.4rem;
}

}
@media screen and (max-width: 767px) { /* = md */
.fiche-entete, .fiche-carte > .contenu {
	padding-left: 1.1rem;
	padding-right: 1.1rem;
}
.titre-site {
	font-size: 1.35rem;
}
.section-fiche {
	padding: 1.1rem 1rem .5rem;
}
.logo{
	width: 120px;
	}
.vague1 {
	background-size: 360px;
	background-position: top left -95px;
}
body {
	background-size: 400px auto, auto, auto, auto;
}
.marges{
	padding-left:10px;
	padding-right:10px;
	}
h1.display-4 {
    font-size: 1.8rem;
}
h1 span {
	font-size:1.3rem;
}
.modal-header, .modal-body {
	padding-left: 1.1rem;
	padding-right: 1.1rem;
}

}
@media screen and (max-width: 575px) { /* = sm */
.accroche {
	font-size: .95rem;
	margin-top: .4rem;
}
.logo{
	width: 80px;
	}
.vague1 {
	background-size: 240px;
	background-position: top left -60px;
}
body {
	background-size: 270px auto, auto, auto, auto;
}
.marges{
	padding-left:0px;
	padding-right:0px;
}
table{
	font-size:0.85rem;
}
h1.display-4 {
    font-size: 1.5rem;
}
h1 span {
	font-size:1.1rem;
}
.tuile {
	min-height: 9rem;
	padding: 1.1rem .6rem;
}
.tuile-icone {
	width: 3.75rem;
	height: 3.75rem;
}
.tuile-icone .icone {
	width: 2rem;
	height: 1.8rem;
}
.tuile-titre {
	font-size: 1.1rem;
}
.recherche input {
	font-size: 1.05rem;
}
.footer1{
	font-size: 1rem;

}

}
