/* Canaux : complète les styles historiques sans modifier les pages intérieures. */
/* Photo et services partagent le même cadre, légèrement plus généreux. */
body.home #diapo-accueil[data-krea3-hero-viewport] > .largeur92 {
	width: 92% !important;
}
/* Le widget est dans un conteneur intérieur, pas directement dans le host. */
body.home #diapo-accueil[data-krea3-hero-viewport]:has(.krea3-diaporama) > .largeur92,
body.home #diapo-accueil[data-krea3-hero-viewport] > .largeur92 > .krea3-diaporama {
	aspect-ratio: auto !important;
	height: 100% !important;
}
body.home #diapo-accueil[data-krea3-hero-viewport] > .largeur92 > .krea3-diaporama {
	inset: 0 !important;
	position: absolute !important;
}
body.home #main-accueil #ligne1 .titre-ligne1 h2 {
	box-sizing: border-box;
	max-width: 100%;
	overflow-wrap: anywhere;
}
/* La date reste dans le flux, hors du cadre photo au ratio imposé. */
body.home #main-accueil #ligne1 #content-ligne1 .agenda > .date-manif {
	font-size: clamp(1.25rem, 2.1vw, 2rem) !important;
	line-height: 1.2 !important;
	margin: 20px 0 12px !important;
	max-width: 100%;
	overflow-wrap: anywhere;
	padding: 0 5px !important;
}
body.home #main-accueil #ligne1 #content-ligne1 .agenda-texte {
	margin: 0 !important;
	padding: 0 5px 12px !important;
}
body.home #main-accueil #ligne1 #content-ligne1 .agenda .agenda-texte::before {
	margin: 0 0 12px !important;
}
body.home #ligne2 #content-ligne2 {
	display: grid !important;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	align-items: center;
	gap: clamp(24px, 3vw, 56px);
	padding: 56px 0;
}
body.home #main-accueil #ligne2 #content-ligne2 {
	width: 90% !important;
}
body.home #ligne2 .titre-ligne2 {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
}
/* Le fond rose commence exactement à la colonne éditoriale (conteneur 90 %). */
body.home #ligne2::before {
	width: calc(35% - clamp(8px, 1vw, 18.6667px)) !important;
}
body.home #ligne2 .gauche-ligne2 {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 24px;
	min-width: 0;
	width: 100% !important;
}
body.home #ligne2 .droite-ligne2 {
	display: block !important;
	width: 100% !important;
	min-width: 0;
}
body.home #ligne2 .gauche-ligne2 a.bloc-actu {
	display: flex !important;
	flex-direction: column;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
	border: 0 !important;
	outline-offset: 4px;
	transition: none;
}
body.home #ligne2 .gauche-ligne2 a.bloc-actu:only-child {
	grid-column: 1 / -1;
	max-width: 520px !important;
}
body.home #ligne2 .gauche-ligne2 .actu-img {
	aspect-ratio: 4 / 3;
	flex: 0 0 auto;
}
body.home #ligne2 .gauche-ligne2 a.bloc-actu .titre-actu {
	position: static !important;
	background: #fff !important;
	color: var(--couleur-principale) !important;
	flex: 1;
	box-sizing: border-box;
	min-height: 92px !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	padding: 18px 20px !important;
}
body.home #ligne2 .gauche-ligne2 a.bloc-actu:hover {
	border: 0 !important;
	opacity: 1;
}
body.home #ligne2 .gauche-ligne2 a.bloc-actu:is(:hover, :focus-visible) .titre-actu {
	text-decoration: underline;
}
body.home #ligne2 .gauche-ligne2 a.bloc-actu:focus-visible {
	outline: 3px solid #171717;
}
body.home #ligne2 .titre-ligne2 p {
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0 0 24px;
	width: 100% !important;
	max-width: none;
	padding: 0 !important;
}
@media (min-width: 681px) {
	body.home #ligne2 .gauche-ligne2:has(> a:nth-child(3):last-child) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
body.home #acces-rapides.canaux-services {
	box-sizing: border-box;
	background: var(--couleur-principale);
	color: #fff;
	padding: clamp(16px, 1.6vw, 28px) 0;
	margin: 0 auto;
	width: 92%;
}
body.home #acces-rapides.canaux-services > .largeur92 {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 24px;
	background: transparent !important;
	padding: 0 clamp(16px, 2.5vw, 36px) !important;
	width: 100% !important;
}
body.home #acces-rapides .canaux-services__heading {
	flex: 0 0 150px;
	min-width: 0;
	overflow-wrap: anywhere;
}
body.home #acces-rapides .canaux-services__heading > span {
	font-size: .875rem;
}
body.home #acces-rapides h2 {
	color: #fff;
	font-size: clamp(1.5rem, 2vw, 2rem);
	line-height: 1.2;
	margin: 4px 0 0;
	padding: 0;
}
body.home #acces-rapides ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 16px;
	list-style: none;
	flex: 1;
	min-width: 0;
	padding: 0 !important;
	margin: 0 !important;
}
body.home #acces-rapides li {
	flex: 0 1 calc((100% - 80px) / 6);
	max-width: 148px;
	min-width: 0 !important;
	width: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none;
}
body.home #acces-rapides a {
	display: flex;
	box-sizing: border-box;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: #fff;
	height: 100%;
	margin: 0 !important;
	padding: 6px;
	text-align: center;
	text-decoration: none;
	border: 0 !important;
	font-size: 1rem !important;
}
body.home #acces-rapides a::before,
body.home #acces-rapides a::after,
body.home #acces-rapides li .texte-acces::after {
	content: none !important;
}
body.home #acces-rapides .canaux-service-icon {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 62px;
	height: 62px !important;
	width: 62px !important;
	border-radius: 50%;
	background: #fff;
	color: var(--couleur-principale);
}
body.home #acces-rapides .canaux-service-icon :is(i, svg) {
	font-size: 26px;
	height: 1em !important;
	width: 1em !important;
	margin: 0;
	padding: 0;
}
body.home #acces-rapides .texte-acces {
	display: block !important;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
body.home #acces-rapides a:is(:hover, :focus-visible) .canaux-service-icon {
	background: var(--couleur-secondaire);
}
body.home #acces-rapides a:is(:hover, :focus-visible) .texte-acces {
	text-decoration: underline;
}
body.home #acces-rapides a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}
@media (max-width: 1100px) {
	body.home #acces-rapides.canaux-services {
		padding: 18px 0;
	}
	body.home #acces-rapides.canaux-services > .largeur92 {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
	}
	body.home #acces-rapides .canaux-services__heading {
		display: flex;
		align-items: baseline;
		flex: 0 0 auto;
		flex-wrap: wrap;
		gap: 6px 14px;
	}
	body.home #acces-rapides h2 {
		margin: 0;
	}
	body.home #acces-rapides ul {
		flex: 0 0 auto;
		width: 100%;
	}
	body.home #acces-rapides .texte-acces {
		font-size: .9rem;
		line-height: 1.35;
	}
}
@media (max-width: 1024px) {
	body.home #ligne2 #content-ligne2 {
		grid-template-columns: minmax(0, 1fr) !important;
	}
	body.home #ligne2::before {
		display: none !important;
	}
	body.home #ligne2 .droite-ligne2 {
		grid-row: 1;
		margin: 0 !important;
		padding: 30px 0 !important;
	}
}
@media (max-width: 760px) {
	body.home #acces-rapides li {
		flex-basis: calc((100% - 32px) / 3);
		max-width: none;
	}
}
@media (max-width: 520px) {
	body.home #acces-rapides.canaux-services {
		padding: 14px 0;
	}
	body.home #acces-rapides h2 {
		font-size: 1.6rem;
	}
	body.home #acces-rapides .canaux-services__heading > span {
		font-size: .875rem;
	}
	body.home #ligne2 .gauche-ligne2 {
		grid-template-columns: minmax(0, 1fr);
	}
	body.home #acces-rapides ul {
		gap: 12px;
		width: 100%;
	}
	body.home #acces-rapides li {
		flex-basis: calc((100% - 12px) / 2);
	}
	body.home #acces-rapides a {
		flex-direction: row;
		gap: 8px;
		min-height: 68px;
		padding: 6px 0;
		text-align: left;
	}
	body.home #acces-rapides .canaux-service-icon {
		flex-basis: 52px;
		height: 52px !important;
		width: 52px !important;
	}
	body.home #acces-rapides .texte-acces {
		font-size: .875rem;
		line-height: 1.4;
	}
}
