/* ============================================
   YOBBU - ANIMATIONS CSS
   À ajouter à la fin de yobbu-complete.css
   ============================================ */

/* === SCROLL REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* === FADE IN ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === SCALE ANIMATIONS === */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleInBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* === FLOATING ANIMATIONS === */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatSlow {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* === PULSE ANIMATIONS === */
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(13, 42, 78, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(13, 42, 78, 0);
    }
}

/* === BOUNCE ANIMATIONS === */
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* === SLIDE ANIMATIONS === */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === ROTATION ANIMATIONS === */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* === SHIMMER EFFECT === */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* === GRADIENT ANIMATION === */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* === TYPING EFFECT === */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* === CLASSES D'ANIMATION === */

/* Animations de base */
.animate-fadeIn {
    animation: fadeIn 0.8s ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out;
}

.animate-scaleInBounce {
    animation: scaleInBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-bounceIn {
    animation: bounceIn 1s ease-out;
}

.animate-rotateIn {
    animation: rotateIn 0.8s ease-out;
}

/* Animations continues */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 4s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 20s linear infinite;
}

/* Délais d'animation */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* === HOVER EFFECTS === */

/* Effet de levitation */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Effet de zoom */
.hover-zoom {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

/* Effet de zoom sur image */
.hover-zoom-image {
    overflow: hidden;
}

.hover-zoom-image img {
    transition: transform 0.5s ease;
}

.hover-zoom-image:hover img {
    transform: scale(1.1);
}

/* Effet de brillance */
.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.hover-shine:hover::before {
    left: 100%;
}

/* Effet de bordure animée */
.hover-border {
    position: relative;
}

.hover-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #0d2a4e, #e6f0f8, #0d2a4e);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-border:hover::before {
    opacity: 1;
}

/* Effet de rotation 3D */
.hover-3d {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.hover-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* === LOADING ANIMATIONS === */

/* Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(13, 42, 78, 0.1);
    border-top-color: #0d2a4e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Dots loader */
@keyframes dotPulse {
    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

.dots-loader {
    display: flex;
    gap: 8px;
}

.dots-loader span {
    width: 12px;
    height: 12px;
    background: #0d2a4e;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.dots-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

/* === PARALLAX EFFECT === */
.parallax {
    transition: transform 0.1s ease-out;
}

/* === SMOOTH TRANSITIONS === */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-smooth {
    transition: all 0.3s ease;
}

.transition-fast {
    transition: all 0.15s ease;
}

.transition-slow {
    transition: all 0.6s ease;
}

/* === ENTRANCE ANIMATIONS (au chargement de la page) === */
.entrance-1 {
    animation: fadeInUp 0.6s ease-out;
}

.entrance-2 {
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.entrance-3 {
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.entrance-4 {
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

/* === ATTENTION SEEKERS === */
@keyframes headShake {
    0%,
    50%,
    100% {
        transform: translateX(0);
    }
    10%,
    30% {
        transform: translateX(-10px);
    }
    20%,
    40% {
        transform: translateX(10px);
    }
}

@keyframes heartBeat {
    0%,
    100% {
        transform: scale(1);
    }
    14%,
    42% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
}

@keyframes wobble {
    0%,
    100% {
        transform: translateX(0%);
    }
    15% {
        transform: translateX(-10%) rotate(-5deg);
    }
    30% {
        transform: translateX(5%) rotate(3deg);
    }
    45% {
        transform: translateX(-5%) rotate(-3deg);
    }
    60% {
        transform: translateX(3%) rotate(2deg);
    }
    75% {
        transform: translateX(-1%) rotate(-1deg);
    }
}

.animate-headShake {
    animation: headShake 1s ease-in-out;
}

.animate-heartBeat {
    animation: heartBeat 1.3s ease-in-out;
}

.animate-wobble {
    animation: wobble 1s ease-in-out;
}

/* === RESPONSIVE ANIMATIONS === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Désactiver certaines animations sur mobile pour la performance */
@media (max-width: 768px) {
    .animate-float,
    .animate-float-slow,
    .animate-rotate {
        animation: none;
    }

    .hover-3d {
        transform: none;
    }
}

/* ============================================
   ANIMATIONS SUPPLÉMENTAIRES POUR L'IMAGE HERO
   À ajouter à yobbu-animations.css
   ============================================ */

/* === OPTION 1 : FADE IN RIGHT + FLOAT (Recommandé) === */
/* L'image entre depuis la droite puis flotte doucement */
.hero-image {
    animation: fadeInRight 1s ease-out, floatSlow 4s ease-in-out 1s infinite;
}

/* === OPTION 2 : SCALE IN + ROTATE === */
/* L'image apparaît avec un zoom et une légère rotation */
@keyframes scaleInRotate {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.hero-image-scale-rotate {
    animation: scaleInRotate 1s ease-out;
}

/* === OPTION 3 : SLIDE UP WITH BLUR === */
/* L'image monte avec un effet de blur qui disparaît */
@keyframes slideUpBlur {
    from {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-image-blur {
    animation: slideUpBlur 1.2s ease-out;
}

/* === OPTION 4 : FLIP IN === */
/* L'image fait un flip 3D en entrant */
@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg);
    }
}

.hero-image-flip {
    animation: flipIn 1s ease-out;
}

/* === OPTION 5 : ELASTIC ENTRANCE === */
/* L'image entre avec un effet élastique */
@keyframes elasticIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-image-elastic {
    animation: elasticIn 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === FLOATING CARD STYLES === */
.hero-floating-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Variante : floating card à droite */
.hero-floating-card-right {
    position: absolute;
    top: 2rem;
    right: -1.5rem;
    left: auto;
    bottom: auto;
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 10;
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

/* === PARALLAX EFFECT SUR L'IMAGE === */
.hero-image-parallax {
    transition: transform 0.1s ease-out;
}

/* Effet de brillance qui traverse l'image */
.hero-image-shine {
    position: relative;
    overflow: hidden;
}

.hero-image-shine::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shine 3s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* === GLOW EFFECT AUTOUR DE L'IMAGE === */
@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(13, 42, 78, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(13, 42, 78, 0.5);
    }
}

.hero-image img {
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.hero-image-glow img {
    animation: glowPulse 3s ease-in-out infinite;
}

/* === TILT EFFECT 3D SUR L'IMAGE === */
.hero-image-tilt {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.hero-image-tilt:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
}

/* === FLOATING AVEC ROTATION === */
@keyframes floatRotate {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

.hero-image-float-rotate {
    animation: floatRotate 6s ease-in-out infinite;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    /* Cacher les floating cards sur tablette/mobile */
    .hero-floating-card,
    .hero-floating-card-right {
        display: none;
    }

    /* Simplifier les animations sur mobile */
    .hero-image {
        animation: fadeInUp 0.8s ease-out !important;
    }

    /* Désactiver le tilt 3D sur mobile */
    .hero-image-tilt:hover {
        transform: none;
    }
}

/* === BADGES ANIMÉS === */
@keyframes badgePulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 42, 78, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(13, 42, 78, 0);
    }
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0d2a4e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s ease-in-out infinite;
}

.floating-badge-top {
    top: 1rem;
    right: 1rem;
}

.floating-badge-bottom {
    bottom: 1rem;
    left: 1rem;
}

/* === COMBINAISON RECOMMANDÉE === */
/* Utiliser cette classe sur .hero-image pour le meilleur effet */
.hero-image-premium {
    animation: fadeInRight 1s ease-out;
}

.hero-image-premium img {
    transition: transform 0.5s ease;
}

.hero-image-premium:hover img {
    transform: scale(1.05);
}

/* Ajouter un float après l'entrée */
.hero-image-premium.loaded {
    animation: floatSlow 4s ease-in-out infinite;
}
