.service-icon {
    fill:var(--clr-accent-green) !important;
}

.card-service-row:hover svg {
	fill: white !important;

}

.single-prestation .card-climatisation svg {
    transform: rotate(0deg);
    transition: transform .6s ease;
}

.single-prestation .card-climatisation.is-animated svg {
    transform: rotate(90deg);
}

.card-service-row.card-climatisation svg {
	transform: rotate(0deg);
	transition: transform .4s ease;
}

.card-service-row.card-climatisation:hover svg {
	transform: rotate(90deg);
}

.card-service-left {
	position: relative;
	overflow: hidden;
	color: #fff;
}

.card-service-left::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--clr-accent-green);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s ease;
	z-index: 0;
}

.card-service-row:hover .card-service-left::before {
	transform: scaleX(1);
}

/* garder le contenu au-dessus */
.card-service-left > * {
	position: relative;
	z-index: 1;
}
.card-service-row .service-img {
	transform: scale(1);
	transition: transform .4s ease;
}
.card-service-row:hover .service-img {
	transform: scale(1.2);
}

/* VITI */
.single-prestation .card-solution_viti_vinicoles .service-icon circle {
    transition: transform .4s ease, opacity .4s ease;
    transform: scale(1);
    opacity: 0.7;
    transform-origin: center;
}

.single-prestation .card-solution_viti_vinicoles.is-animated .service-icon circle {
    transform: scale(1.2);
    opacity: 1;
}

.card-service-row.card-solution_viti_vinicoles .service-icon circle {
	transition: transform .4s ease, opacity .4s ease;
	transform: scale(1);
	opacity: 0.7;
	transform-origin: center center;
}

.card-service-row.card-solution_viti_vinicoles:hover .service-icon circle {
	transform: scale(1.2);
	opacity: 1;
}

.card-service-row.card-solution_viti_vinicoles .service-icon circle:nth-child(1) { transition-delay: 0s; }
.card-service-row.card-solution_viti_vinicoles .service-icon circle:nth-child(2) { transition-delay: .05s; }
.card-service-row.card-solution_viti_vinicoles .service-icon circle:nth-child(3) { transition-delay: .1s; }
.card-service-row.card-solution_viti_vinicoles .service-icon circle:nth-child(4) { transition-delay: .15s; }
.card-service-row.card-solution_viti_vinicoles .service-icon circle:nth-child(5) { transition-delay: .2s; }
.card-service-row.card-solution_viti_vinicoles .service-icon circle:nth-child(6) { transition-delay: .25s; }
.card-service-row.card-solution_viti_vinicoles .service-icon circle:nth-child(7) { transition-delay: .3s; }
.card-service-row.card-solution_viti_vinicoles .service-icon circle:nth-child(8) { transition-delay: .35s; }


/* PHOTOVOLTAIQUE */
.card-service-row.card-photovoltaique polygon {
	transform-origin: center;
	transform-box: fill-box;
	transition: transform .3s ease, fill .3s ease;
}

.card-service-row.card-photovoltaique:hover #icon-photovoltaique polygon {
	transform: scale(1.05);
	fill: #ffc107;
}
.single-prestation .card-photovoltaique polygon {
    transform-origin: center;
    transform-box: fill-box;
    transition: transform .3s ease, fill .3s ease;
}

.single-prestation .card-photovoltaique.is-animated polygon {
    transform: scale(1.05);
    fill: #ffc107;
}



/* cascade */
.card-service-row.card-photovoltaique polygon:nth-child(1) { transition-delay: 0s; }
.card-service-row.card-photovoltaique polygon:nth-child(2) { transition-delay: .05s; }
.card-service-row.card-photovoltaique polygon:nth-child(3) { transition-delay: .1s; }
.card-service-row.card-photovoltaique polygon:nth-child(4) { transition-delay: .15s; }
.card-service-row.card-photovoltaique polygon:nth-child(5) { transition-delay: .2s; }
.card-service-row.card-photovoltaique polygon:nth-child(6) { transition-delay: .25s; }


/* CHAUFFAGE */
#chauffage #hot path {
	transform-origin: 50% 100%;
	transform-box: fill-box;
	opacity: 0.7;
	animation: heatWave 1.8s ease-in-out infinite;
	animation-play-state: paused;
}
.single-prestation #chauffage #hot path {
    animation-play-state: paused;
}

.single-prestation .is-animated #chauffage #hot path {
    animation-play-state: running;
}


/* hover sur la card */
.card-service-row:hover #chauffage #hot path {
	animation-play-state: running;
}

/* décalage naturel */
#chauffage #hot path:nth-child(1) { animation-delay: 0s; }
#chauffage #hot path:nth-child(2) { animation-delay: .3s; }
#chauffage #hot path:nth-child(3) { animation-delay: .6s; }

@keyframes heatWave {
	0% {
		transform: translateY(0) scale(1);
		opacity: 0.7;
	}
	50% {
		transform: translateY(-4px) scale(1.05);
		opacity: 1;
	}
	100% {
		transform: translateY(0) scale(1);
		opacity: 0.7;
	}
}



/* SALLE DE BAIN */
#salle_de_bain #water path {
	transform-origin: 50% 0%;
	transform-box: fill-box;
	opacity: 0.8;
	animation: waterDrop 1.6s ease-in-out infinite;
	animation-play-state: paused;
}

/* hover sur la card */
.card-service-row:hover #salle_de_bain #water path {
	animation-play-state: running;
}

.single-prestation #salle_de_bain #water path {
    animation-play-state: paused;
}

.single-prestation .is-animated #salle_de_bain #water path {
    animation-play-state: running;
}

/* décalage pour effet naturel */
#salle_de_bain #water path:nth-child(1) { animation-delay: 0s; }
#salle_de_bain #water path:nth-child(2) { animation-delay: .15s; }
#salle_de_bain #water path:nth-child(3) { animation-delay: .3s; }
#salle_de_bain #water path:nth-child(4) { animation-delay: .45s; }
#salle_de_bain #water path:nth-child(5) { animation-delay: .6s; }
#salle_de_bain #water path:nth-child(6) { animation-delay: .75s; }
#salle_de_bain #water path:nth-child(7) { animation-delay: .9s; }
#salle_de_bain #water path:nth-child(8) { animation-delay: 1.05s; }

@keyframes waterDrop {
	0% {
		transform: translateY(0);
		opacity: 0.8;
	}
	50% {
		transform: translateY(6px);
		opacity: 1;
	}
	100% {
		transform: translateY(0);
		opacity: 0.8;
	}
}
