/* Animations sophistiquées pour la section À propos */

/* Animation de flottement pour les images */
.floating-image {
    animation: float 6s ease-in-out infinite;
    transform-origin: center center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.floating-image-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
    transform-origin: center center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

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

/* Animation d'inclinaison 3D */
.perspective-effect {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.perspective-effect:hover {
    transform: rotateX(5deg) rotateY(5deg);
}

/* Overlay avec effet de brillance */
.img-overlay-effect, .img-overlay-effect-2 {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.img-overlay-effect-2 {
    animation-delay: 1.5s;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Animation de glissement depuis la droite */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideRight 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation de fondu vers le haut */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation des compteurs */
.counter-value {
    opacity: 0;
    transform: scale(0.5);
    animation: counterPop 0.5s ease-out forwards;
    animation-delay: calc(var(--delay, 0s) + 0.3s);
    display: inline-block;
}

@keyframes counterPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    80% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Éléments décoratifs */
.about-img-container {
    position: relative;
    padding: 20px;
}

.about-img-frame {
    position: relative;
    z-index: 2;
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.decorative-circle-1 {
    width: 120px;
    height: 120px;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    top: -30px;
    left: -30px;
    animation: pulse-circle 4s infinite alternate;
}

.decorative-circle-2 {
    width: 80px;
    height: 80px;
    background-color: rgba(var(--bs-primary-rgb), 0.15);
    bottom: 40px;
    right: -20px;
    animation: pulse-circle 4s infinite alternate-reverse;
}

@keyframes pulse-circle {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

.decorative-line {
    position: absolute;
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--bs-primary), transparent);
    bottom: 20px;
    left: -50px;
    transform: rotate(-45deg);
    z-index: 1;
    animation: line-pulse 2s infinite;
}

@keyframes line-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ISO Badge */
.iso-badge {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: badge-pulse 3s infinite;
}

.iso-badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    line-height: 1.2;
}

.iso-badge-inner span {
    font-size: 18px;
    font-weight: 700;
}

.iso-badge-inner strong {
    font-size: 14px;
    font-weight: 600;
}

@keyframes badge-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.05); }
}

/* Title underline */
.title-underline {
    width: 80px;
    height: 4px;
    background: var(--bs-primary);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.title-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: underline-shimmer 2s infinite;
}

@keyframes underline-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Service Cards */
.service-card {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--bs-primary);
    transition: height 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--bs-primary);
    color: white;
}

.service-icon i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: white !important;
    transform: scale(1.2);
}

.service-content h5 {
    margin-bottom: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-card:hover .service-content h5 {
    color: var(--bs-primary);
}

.service-content p {
    margin-bottom: 0;
    font-size: 14px;
    color: #6c757d;
}

/* Trust Indicator */
.trust-indicator {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.trust-avatars {
    display: flex;
    margin-right: 15px;
}

.trust-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -15px;
    transition: all 0.3s ease;
}

.trust-avatar:first-child {
    margin-left: 0;
}

.trust-avatar:hover {
    transform: translateY(-5px);
    z-index: 10;
    position: relative;
}

.trust-avatar-more {
    background-color: var(--bs-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.trust-text p {
    margin-bottom: 0;
    font-size: 14px;
}

/* Stats Cards */
.stats-container {
    margin-top: 30px;
}

.stat-card {
    border-radius: 15px;
    padding: 25px 15px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: rotate(45deg);
    z-index: -1;
    transition: all 0.5s ease;
    opacity: 0;
}

.stat-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(10%, 10%);
}

.stat-primary {
    background-color: var(--bs-primary);
    color: #212529;
}

.stat-dark {
    background-color: #212529;
    color: white;
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-suffix {
    font-size: 1.5rem;
    margin-left: 5px;
    font-weight: 600;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Button Animation */
.btn-animated {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-animated:hover::before {
    left: 100%;
}

.btn-animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
/* Nouvelles animations pour la section À propos */

/* Élément décoratif carré */
.decorative-square {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 3px solid var(--bs-primary);
    bottom: -20px;
    left: -20px;
    z-index: 1;
    animation: rotate-square 8s linear infinite;
    opacity: 0.7;
}

@keyframes rotate-square {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badge ISO amélioré */
.iso-badge {
    position: absolute;
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: badge-pulse 3s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.iso-badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    line-height: 1.2;
    padding: 5px;
}

.iso-badge-inner span {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.iso-numbers {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iso-badge-inner strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.iso-certified {
    font-size: 12px;
    margin-top: 3px;
    font-style: italic;
    opacity: 0.9;
}

/* Cartes de service premium */
.premium-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 100%);
    border-left: 3px solid transparent;
    transition: all 0.4s ease;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--bs-primary) 0%, #0056b3 100%);
    transition: height 0.4s ease;
}

.premium-card:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(245, 245, 245, 0.9) 100%);
}

.premium-card:hover::before {
    height: 100%;
}

.premium-card .service-icon {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1) 0%, rgba(var(--bs-primary-rgb), 0.2) 100%);
    transition: all 0.4s ease;
}

.premium-card:hover .service-icon {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    transform: rotate(360deg);
}

/* Bouton premium */
.btn-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 83, 179, 0.3);
}

.btn-premium::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: all 0.6s ease;
    z-index: -1;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 83, 179, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, var(--bs-primary) 100%);
}

/* Trust indicator premium */
.premium-trust {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 100%);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.premium-trust:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.premium-trust .trust-avatar {
    border: 2px solid var(--bs-primary);
    transition: all 0.4s ease;
}

.premium-trust:hover .trust-avatar {
    transform: translateY(-8px);
}

/* Stats cards premium */
.stat-premium {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 83, 179, 0.2);
}

.stat-dark-premium {
    background: linear-gradient(135deg, #212529 0%, #000000 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-premium .stat-icon,
.stat-dark-premium .stat-icon {
    opacity: 0.8;
    transition: all 0.4s ease;
}

.stat-premium:hover .stat-icon,
.stat-dark-premium:hover .stat-icon {
    transform: scale(1.2);
    opacity: 1;
}

.stat-premium .stat-number,
.stat-dark-premium .stat-number {
    font-size: 2.8rem;
    font-weight: 700;
}

.stat-premium .counter-suffix,
.stat-dark-premium .counter-suffix {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Animations pour les compteurs */
@keyframes counterPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation pour le bouton */
.btn-animated {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    z-index: -1;
    transition: all 0.5s ease;
}

.btn-animated:hover::before {
    left: 100%;
}

.btn-animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Animation pour les boîtes de compteurs */
.counter-box {
    transition: all 0.5s ease;
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.counter-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animation pour les images des clients */
.customer-img {
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.about-customer:hover .customer-img {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.about-customer:hover .customer-img:nth-child(1) {
    transition-delay: 0s;
}

.about-customer:hover .customer-img:nth-child(2) {
    transition-delay: 0.1s;
}

.about-customer:hover .customer-img:nth-child(3) {
    transition-delay: 0.2s;
}

.about-customer:hover .customer-img:nth-child(4) {
    transition-delay: 0.3s;
}

/* Styles pour la section About avec ISO */
.iso-about-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.iso-about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/bg.png');
    opacity: 0.05;
    animation: backgroundMove 30s linear infinite;
}

@keyframes backgroundMove {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* Styles pour le conteneur d'image */
.about-img-container {
    position: relative;
    z-index: 1;
}

.about-img-frame {
    position: relative;
    z-index: 2;
    padding: 10px;
}

/* Éléments décoratifs */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.decorative-circle-1 {
    width: 120px;
    height: 120px;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    top: -30px;
    left: -20px;
    animation: pulse-circle 5s infinite alternate;
}

.decorative-circle-2 {
    width: 80px;
    height: 80px;
    background-color: rgba(var(--bs-primary-rgb), 0.15);
    bottom: 40px;
    right: -20px;
    animation: pulse-circle 4s infinite alternate-reverse;
}

.decorative-square {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: rgba(var(--bs-dark-rgb), 0.1);
    bottom: 80px;
    left: -30px;
    transform: rotate(45deg);
    animation: rotate-square 15s linear infinite;
    z-index: 0;
}

@keyframes pulse-circle {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

@keyframes rotate-square {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

/* Badge de certification ISO avec effet 3D */
.iso-certificate-badge {
    position: absolute;
    width: 180px;
    height: 180px;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    perspective: 1000px;
    transition: all 0.5s ease;
}

.iso-certificate-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    animation: float-badge 6s ease-in-out infinite;
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.iso-certificate-badge:hover .iso-certificate-inner {
    transform: rotateY(180deg);
}

.iso-certificate-front, .iso-certificate-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.iso-certificate-back {
    transform: rotateY(180deg);
}

.iso-certificate-content {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.iso-certificate-badge:hover .iso-certificate-content {
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.2);
}

.iso-decorative-square, .iso-decorative-circle {
    position: absolute;
    opacity: 0.2;
    z-index: 0;
}

.iso-decorative-square {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.5);
    top: -20px;
    right: -20px;
    transform: rotate(45deg);
    animation: rotate-element 15s linear infinite;
}

.iso-decorative-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    bottom: -30px;
    left: -30px;
    animation: pulse-element 5s infinite alternate;
}

@keyframes rotate-element {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

@keyframes pulse-element {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.2); opacity: 0.3; }
}

/* Styles pour les fonctionnalités ISO */
.iso-features-container {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.iso-features-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.iso-title-border {
    position: relative;
    overflow: hidden;
}

.iso-title-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--bs-primary), transparent);
    animation: border-flow 3s infinite alternate;
}

@keyframes border-flow {
    0% { transform: translateX(0%); }
    100% { transform: translateX(50%); }
}

.iso-feature-item {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.iso-feature-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    transform: translateX(5px);
}

.iso-feature-item .btn-square {
    transition: all 0.3s ease;
}

.iso-feature-item:hover .btn-square {
    transform: rotate(360deg);
    background-color: var(--bs-dark);
}

/* Animation pour le bouton */
.btn-animated {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    z-index: -1;
    transition: all 0.5s ease;
}

.btn-animated:hover::before {
    left: 100%;
}

.btn-animated:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Animation pour les boîtes de compteurs */
.counter-box {
    transition: all 0.5s ease;
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.counter-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Animation pour les images des clients */
.customer-img {
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.about-customer:hover .customer-img {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.about-customer:hover .customer-img:nth-child(1) {
    transition-delay: 0s;
}

.about-customer:hover .customer-img:nth-child(2) {
    transition-delay: 0.1s;
}

.about-customer:hover .customer-img:nth-child(3) {
    transition-delay: 0.2s;
}

.about-customer:hover .customer-img:nth-child(4) {
    transition-delay: 0.3s;
}

/* Nouvelles animations pour les images About */
.floating-image-3d {
    animation: float-3d 8s ease-in-out infinite;
    transform-origin: center center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    filter: saturate(1.1);
}

.floating-image-delayed-3d {
    animation: float-3d 8s ease-in-out infinite;
    animation-delay: 1.5s;
    transform-origin: center center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    filter: saturate(1.1);
}

@keyframes float-3d {
    0% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    25% { transform: translateY(-10px) rotateX(2deg) rotateY(1deg); }
    50% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    75% { transform: translateY(5px) rotateX(-1deg) rotateY(-1deg); }
    100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
}

/* Overlay avec gradient pour les images */
.img-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 123, 255, 0.2) 0%,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 123, 255, 0.2) 100%
    );
    animation: gradient-shift 8s infinite;
    pointer-events: none;
}

.img-overlay-gradient-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        -135deg,
        rgba(0, 123, 255, 0.2) 0%,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 123, 255, 0.2) 100%
    );
    animation: gradient-shift 8s infinite;
    animation-delay: 2s;
    pointer-events: none;
}

@keyframes gradient-shift {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

/* Animations améliorées pour les éléments décoratifs */
.pulse-animation {
    animation: pulse-grow 4s infinite alternate;
}

.pulse-animation-delayed {
    animation: pulse-grow 4s infinite alternate-reverse;
    animation-delay: 1s;
}

@keyframes pulse-grow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0.8; }
}

.floating-square {
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    bottom: -20px;
    right: 40px;
    transform: rotate(45deg);
    animation: float-rotate 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes float-rotate {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(60deg) translateY(-15px); }
}

.decorative-line-animated {
    position: absolute;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--bs-primary), transparent);
    top: 30px;
    right: -40px;
    transform: rotate(45deg);
    z-index: 1;
    animation: line-pulse-move 4s infinite;
}

@keyframes line-pulse-move {
    0% { opacity: 0.3; transform: rotate(45deg) translateX(-20px); }
    50% { opacity: 1; transform: rotate(45deg) translateX(0); }
    100% { opacity: 0.3; transform: rotate(45deg) translateX(20px); }
}