/* ==========================================================================
   MOVING.CSS — Animations d'apparition
   Lié à sanex_concours.html — compatible WOW.js (classe .wow + .animated)
   --------------------------------------------------------------------------
   Classes disponibles :
   .depuis_haut    → apparition depuis le haut, fade doux
   .depuis_bas     → apparition depuis le bas, fade doux
   .depuis_gauche  → apparition depuis la gauche, fade doux
   .depuis_fond    → apparition douce depuis le fond (zoom-in)
   .depuis_bounce  → apparition bounce-in dynamique et chic
   ========================================================================== */

/* --------------------------------------------------------------------------
   BASE
   Les éléments .wow sont masqués par WOW.js jusqu'à leur entrée dans le
   viewport, puis animés via la classe .animated.
   -------------------------------------------------------------------------- */

.wow {
	visibility: hidden;
}

.animated {
	visibility: visible !important;
}

.depuis_haut,
.depuis_bas,
.depuis_gauche,
.depuis_fond,
.depuis_bounce {
	-webkit-animation-duration: 0.9s;
	animation-duration: 0.9s;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* easeOutQuad — doux */
	animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   .depuis_haut — apparition venant du haut, fade doux
   -------------------------------------------------------------------------- */

@-webkit-keyframes depuisHaut {
	0%   { opacity: 0; -webkit-transform: translate3d(0, -40px, 0); transform: translate3d(0, -40px, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}
@keyframes depuisHaut {
	0%   { opacity: 0; -webkit-transform: translate3d(0, -40px, 0); transform: translate3d(0, -40px, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

.depuis_haut {
	-webkit-animation-name: depuisHaut;
	animation-name: depuisHaut;
}

/* --------------------------------------------------------------------------
   .depuis_bas — apparition venant du bas, fade doux
   -------------------------------------------------------------------------- */

@-webkit-keyframes depuisBas {
	0%   { opacity: 0; -webkit-transform: translate3d(0, 40px, 0); transform: translate3d(0, 40px, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}
@keyframes depuisBas {
	0%   { opacity: 0; -webkit-transform: translate3d(0, 40px, 0); transform: translate3d(0, 40px, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

.depuis_bas {
	-webkit-animation-name: depuisBas;
	animation-name: depuisBas;
}

/* --------------------------------------------------------------------------
   .depuis_gauche — apparition venant de la gauche, fade doux
   -------------------------------------------------------------------------- */

@-webkit-keyframes depuisGauche {
	0%   { opacity: 0; -webkit-transform: translate3d(-50px, 0, 0); transform: translate3d(-50px, 0, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}
@keyframes depuisGauche {
	0%   { opacity: 0; -webkit-transform: translate3d(-50px, 0, 0); transform: translate3d(-50px, 0, 0); }
	100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

.depuis_gauche {
	-webkit-animation-name: depuisGauche;
	animation-name: depuisGauche;
}

/* --------------------------------------------------------------------------
   .depuis_fond — apparition douce en fade venant du fond (zoom-in)
   -------------------------------------------------------------------------- */

@-webkit-keyframes depuisFond {
	0%   { opacity: 0; -webkit-transform: scale3d(0.82, 0.82, 1); transform: scale3d(0.82, 0.82, 1); }
	100% { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); }
}
@keyframes depuisFond {
	0%   { opacity: 0; -webkit-transform: scale3d(0.82, 0.82, 1); transform: scale3d(0.82, 0.82, 1); }
	100% { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); }
}

.depuis_fond {
	-webkit-animation-name: depuisFond;
	animation-name: depuisFond;
	-webkit-animation-duration: 1.1s;
	animation-duration: 1.1s;
	-webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); /* easeOutCubic — très doux */
	animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* --------------------------------------------------------------------------
   .depuis_bounce — zoom soyeux, dynamique et élégant
   Zoom depuis le fond avec un flou qui se dissipe (effet "mise au point").
   -------------------------------------------------------------------------- */

@-webkit-keyframes depuisBounce {
	0%   { opacity: 0; -webkit-transform: scale3d(0.82, 0.82, 1); transform: scale3d(0.82, 0.82, 1); -webkit-filter: blur(8px); filter: blur(8px); }
	55%  { opacity: 1; -webkit-filter: blur(0); filter: blur(0); }
	100% { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); -webkit-filter: blur(0); filter: blur(0); }
}
@keyframes depuisBounce {
	0%   { opacity: 0; -webkit-transform: scale3d(0.82, 0.82, 1); transform: scale3d(0.82, 0.82, 1); -webkit-filter: blur(8px); filter: blur(8px); }
	55%  { opacity: 1; -webkit-filter: blur(0); filter: blur(0); }
	100% { opacity: 1; -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); -webkit-filter: blur(0); filter: blur(0); }
}

.depuis_bounce {
	-webkit-animation-name: depuisBounce;
	animation-name: depuisBounce;
	-webkit-animation-duration: 1.05s;
	animation-duration: 1.05s;
	-webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); /* easeOutCubic — très doux */
	animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
	will-change: transform, opacity, filter;
}

/* --------------------------------------------------------------------------
   ACCESSIBILITÉ — désactive les animations si l'utilisateur le demande
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.wow {
		visibility: visible;
	}
	.depuis_haut,
	.depuis_bas,
	.depuis_gauche,
	.depuis_fond,
	.depuis_bounce {
		-webkit-animation: none !important;
		animation: none !important;
		opacity: 1;
		-webkit-transform: none;
		transform: none;
	}
}
