/* Animations légères de vies95.fr (Artesio, 20/11/2026, accord de VIES). */

/* 1. Cartes : léger soulèvement et ombre douce au survol */
.vies-carte {
	transition: transform .8s cubic-bezier(.22, .61, .36, 1), box-shadow .8s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}
.vies-carte:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, .13);
}
/* Blocs Particuliers / Entreprises / Fonctionnement / Secteur de l'accueil : le thème enfant d'origine les
   agrandissait de 10 % en 0,2 s (.global_bloc_animation .wpb_column:hover) ; même effet doux que les autres cartes. */
.global_bloc_animation .wpb_column.vies-carte {
	transition: transform .8s cubic-bezier(.22, .61, .36, 1), box-shadow .8s cubic-bezier(.22, .61, .36, 1);
}
.global_bloc_animation .wpb_column.vies-carte:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, .13) !important;
}

/* 2. Boutons : changement de couleur et petit décalage en douceur */
.vc_btn3, .link_bloc a, .wpb_wrapper a.vc_btn3 {
	transition: transform .4s ease, background-color .4s ease, color .4s ease, box-shadow .4s ease !important;
}
.vc_btn3:hover, .link_bloc a:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}

/* 3. Apparition douce au défilement (à la place des rebonds) */
.vies-apparition {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 1.1s cubic-bezier(.22, .61, .36, 1), transform 1.1s cubic-bezier(.22, .61, .36, 1);
}
.vies-apparition.vies-visible {
	opacity: 1;
	transform: none;
}
/* Blocs animés par WPBakery : fondu doux à la place des rebonds, déclenché au même moment */
.wpb_animate_when_almost_visible.vies-sans-rebond.wpb_start_animation,
.wpb_animate_when_almost_visible.vies-sans-rebond.animated {
	animation: vies-fondu 1.2s cubic-bezier(.22, .61, .36, 1) both !important;
}
@keyframes vies-fondu {
	from { opacity: 0; transform: translateY(40px); }
	to { opacity: 1; transform: none; }
}

/* 4. Bandeaux de page : zoom très lent sur l'image de fond */
.vies-bandeau {
	overflow: hidden;
	position: relative;
}
.vies-bandeau-image {
	animation: vies-zoom 18s ease-out forwards;
	transform-origin: center center;
}
@keyframes vies-zoom {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}

/* Visiteurs qui ont demandé moins d'animations : rien ne bouge */
@media (prefers-reduced-motion: reduce) {
	.vies-carte, .vc_btn3, .link_bloc a { transition: none !important; }
	.vies-carte:hover, .vc_btn3:hover, .link_bloc a:hover, .global_bloc_animation .wpb_column.vies-carte:hover { transform: none; }
	.vies-apparition { opacity: 1; transform: none; transition: none; }
	.vies-bandeau-image { animation: none; }
	.wpb_animate_when_almost_visible.vies-sans-rebond { animation: none !important; opacity: 1 !important; }
}

/* 5. Chiffres clés : cartes de même hauteur sur ordinateur, contenu centré verticalement */
@media (min-width: 768px) {
	html body .page_content .vc_row .wpb_column > .vc_column-inner.vies-chiffre {
		display: flex !important;
		flex-direction: column;
		justify-content: center;
	}
	html body .page_content .vc_row .wpb_column > .vc_column-inner.vies-chiffre > .wpb_wrapper {
		flex: 0 0 auto !important;
		height: auto !important;
		justify-content: center !important;
	}
}

/* 6. Cases encadrées à lien (Qui sommes-nous, Nos services…) : toute la case mène à la sous-page,
   pas seulement le titre (demande de Denis, 20/11/2026). Le clic est géré par vies-animations.js. */
.wpb_text_column.cadre.vies-case-lien {
	cursor: pointer;
}
.wpb_text_column.cadre.vies-case-lien:focus-within {
	outline: 2px solid #a8368c;
	outline-offset: 3px;
}

/* 7. Passage d'une page à l'autre : fondu enchaîné (navigateurs récents : Chrome, Edge, Safari ;
   les autres changent de page comme avant). Demande de Denis, 20/11/2026. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: .45s;
		animation-timing-function: ease;
	}
}

/* 8. Pages en préparation (L'équipe permanente, Devenir bénévole) : encart illustré au lieu du texte brut. */
.page_construction .vies-construction {
	max-width: 640px;
	margin: 30px auto 50px;
	padding: 48px 40px 42px;
	text-align: center;
	background: #fff;
	border-radius: 14px;
	border-top: 6px solid #a8368c;
	box-shadow: 0 10px 34px rgba(0, 0, 0, .08);
}
.vies-construction-icone {
	width: 110px;
	height: 110px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: linear-gradient(135deg, #a8368c, #c2539f);
	color: #fff;
	font-size: 46px;
	line-height: 110px;
	box-shadow: 0 8px 20px rgba(168, 54, 140, .3);
	animation: vies-flotte 4s ease-in-out infinite;
}
@keyframes vies-flotte {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}
.page_construction .vies-construction h2 {
	margin: 0 0 12px;
	color: #a8368c;
	font-size: 30px;
	line-height: 1.25;
	text-transform: none;
}
.vies-construction-badge {
	display: inline-block;
	margin: 0 0 22px !important;
	padding: 6px 16px;
	border-radius: 20px;
	background: #e9f7ec;
	color: #1a8a2e !important;
	font-size: 14px;
	font-weight: 600;
}
.vies-construction-badge i {
	margin-right: 6px;
}
.page_construction .vies-construction p {
	color: #555;
	font-size: 16px;
	line-height: 1.7;
	margin: 0 0 10px;
	text-transform: none;
}
.vies-construction-boutons {
	margin-top: 26px;
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}
.vies-construction-boutons a {
	display: inline-block;
	padding: 11px 24px;
	border-radius: 6px;
	border: 2px solid #a8368c;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .4s ease, color .4s ease, transform .4s ease;
}
.vies-construction-boutons a.vies-bouton-plein {
	background: #a8368c;
	color: #fff !important;
}
.vies-construction-boutons a.vies-bouton-clair {
	background: transparent;
	color: #a8368c !important;
}
.vies-construction-boutons a:hover {
	transform: translateY(-1px);
}
.vies-construction-boutons a.vies-bouton-plein:hover {
	background: #8e2b76;
	border-color: #8e2b76;
}
.vies-construction-boutons a.vies-bouton-clair:hover {
	background: #a8368c;
	color: #fff !important;
}
@media (max-width: 767px) {
	.page_construction .vies-construction { padding: 36px 22px 32px; margin: 10px 0 30px; }
	.page_construction .vies-construction h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.vies-construction-icone { animation: none; }
}
/* Rangée de navigation des pages en préparation : même écart sous le bandeau que sur les autres pages */
.page-id-30 .vc_row.equalize,
.page-id-32 .vc_row.equalize {
	margin-top: 6% !important;
	margin-bottom: 0 !important;
}
.page_construction .vies-construction {
	margin-top: 0;
}
.page-id-30 .page_construction,
.page-id-32 .page_construction {
	height: auto !important;
	min-height: 0 !important;
	padding: 40px 0 70px !important;
}

/* 9. Page d'erreur 404 (modèle 404.php du thème enfant) : bandeau blanc comme sur les autres pages
   (le thème le mettait en noir faute de réglage propre à la page) et encart en français. */
.error404 header.navbar {
	background-color: #fff !important;
}
.error404 .page_construction {
	height: auto !important;
	min-height: 0 !important;
	padding: 250px 0 70px !important;
	display: block !important;
}
@media (max-width: 767px) {
	.error404 .page_construction { padding-top: 110px !important; }
}

/* 11. Chiffres clés : fond vert avec motif de points léger, cartes semi-transparentes, icônes. */
.vies-zone-chiffres > .upb_row_bg {
	background-image:
		radial-gradient(rgba(255, 255, 255, .16) 1.4px, transparent 1.7px),
		linear-gradient(135deg, rgba(255, 255, 255, .10) 0%, rgba(0, 0, 0, .22) 100%) !important;
	background-size: 22px 22px, 100% 100% !important;
}
html body .page_content .vc_row .wpb_column > .vc_column-inner.vies-chiffre {
	background-color: rgba(255, 255, 255, .93) !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 12px;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.vies-chiffre-icone {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: rgba(168, 54, 140, .12);
	color: #a8368c;
	font-size: 23px;
	line-height: 56px;
	text-align: center;
	transition: transform .8s cubic-bezier(.22, .61, .36, 1), background-color .8s ease, color .8s ease;
}
.vies-chiffre:hover .vies-chiffre-icone {
	transform: scale(1.08);
	background: #a8368c;
	color: #fff;
}
@media (prefers-reduced-motion: reduce) {
	.vies-chiffre-icone { transition: none; }
	.vies-chiffre:hover .vies-chiffre-icone { transform: none; }
}

/* 12. Chiffres clés plus aérés : liste des communes au survol, cartes plus espacées. */
.vies-chiffre-masque {
	display: none !important;
}
.vies-chiffre-indice {
	margin: 8px 0 0 !important;
	color: #a8368c !important;
	font-size: 13px !important;
	font-weight: 600;
	text-align: center !important;
}
.vies-chiffre-avec-voile {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	outline: none;
}
.vies-chiffre-voile {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 18px;
	background: #a8368c;
	color: #fff;
	text-align: center;
	opacity: 0;
	transition: opacity .7s cubic-bezier(.22, .61, .36, 1);
	pointer-events: none;
}
.vies-chiffre-voile p {
	margin: 0 !important;
	color: #fff !important;
	font-size: 15px !important;
	line-height: 1.6 !important;
}
.vies-chiffre-voile .vies-chiffre-voile-titre {
	margin-bottom: 8px !important;
	font-weight: 700;
	font-size: 17px !important;
}
.vies-chiffre-avec-voile:hover .vies-chiffre-voile,
.vies-chiffre-avec-voile:focus-within .vies-chiffre-voile,
.vies-chiffre-avec-voile:focus .vies-chiffre-voile {
	opacity: 1;
}
@media (min-width: 768px) {
	.vies-chiffre-col {
		padding-left: 18px !important;
		padding-right: 18px !important;
		margin-bottom: 36px !important;
	}
}
@media (max-width: 767px) {
	.vies-chiffre-col {
		margin-bottom: 16px !important;
		padding-left: 15px !important;
		padding-right: 15px !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	.vies-chiffre-voile { transition: none; }
}

/* 13. Carte « Nous situer » du pied de page (widget texte) : ouverture et fermeture en fondu avec léger zoom,
   au lieu d'une apparition brutale (demande de Denis, 20/11/2026). */
.vies-carte-overlay {
	display: flex !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .5s;
}
.vies-carte-overlay.active {
	opacity: 1;
	visibility: visible;
	transition: opacity .5s cubic-bezier(.22, .61, .36, 1), visibility 0s;
}
.vies-carte-overlay img {
	transform: scale(.9);
	transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.vies-carte-overlay.active img {
	transform: scale(1);
}
.vies-carte-zoom {
	transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s ease;
}
.vies-carte-zoom:hover {
	transform: scale(1.02);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
@media (prefers-reduced-motion: reduce) {
	.vies-carte-overlay, .vies-carte-overlay.active, .vies-carte-overlay img, .vies-carte-zoom { transition: none; }
	.vies-carte-overlay img, .vies-carte-zoom:hover { transform: none; }
}

/* Chiffres clés : un peu d'air entre le chiffre et la phrase (demande de Denis) */
.vies-chiffre .wpb_wrapper > .wpb_text_column + .wpb_text_column {
	margin-top: 10px !important;
}
