/* TeamSection Styles */

/* Texte avec effet de dégradé */
.gradient-text {
  background: linear-gradient(to right, #6366f1, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
#team-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 2rem; /* Espacement réduit en bas de la section */
}

/* Conteneur des membres d'équipe */
#team-section > .container > .relative {
    margin-bottom: 3rem !important; /* Espacement réduit avant le sous-titre */
}

/* Enhanced team member styles */
.team-member {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.team-member:hover {
    transform: translateY(-12px) scale(1.02);
}

/* Advanced image effects - couleur par défaut avec surbrillance au hover */
.team-member img {
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) contrast(1) saturate(1);
    will-change: transform, filter;
}

.team-member:hover img {
    filter: brightness(1.25) contrast(1.15) saturate(1.25);
    transform: scale(1.08);
}

/* Enhanced border effects for rectangular images */
.team-member .border-white\/20 {
    transition: all 0.7s ease;
    position: relative;
}

.team-member:hover .border-white\/20 {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 40px rgba(255, 255, 255, 0.15),
        0 0 80px rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Animation de la bulle de statut au survol */
.team-member .absolute.-bottom-2 {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.team-member:hover .absolute.-bottom-2 {
    transform: translate(-50%, -8px);
}

/* Custom width classes for larger rectangular images */
.w-72 {
    width: 18rem; /* 288px */
}

.h-88 {
    height: 22rem; /* 352px */
}

.w-88 {
    width: 22rem; /* 352px */
}

.h-104 {
    height: 26rem; /* 416px */
}

.w-80 {
    width: 20rem; /* 320px */
}

.h-96 {
    height: 24rem; /* 384px */
}

.w-96 {
    width: 24rem; /* 384px */
}

.h-112 {
    height: 28rem; /* 448px */
}

.w-60 {
    width: 15rem; /* 240px */
}

.h-60 {
    height: 15rem; /* 240px */
}

/* Custom rounded class for very rounded corners */
.rounded-6xl {
    border-radius: 3rem; /* 48px */
}

/* Glow animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(52, 211, 153, 0.8);
    }
}

/* Slow spin animation */
@keyframes animate-spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* Enhanced pulse */
.animate-pulse {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* Backdrop blur enhancement */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

/* Floating elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

.team-member > div:first-child::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-member:hover > div:first-child::before {
    opacity: 1;
}

/* Connection line enhancement */
.team-member + .absolute {
    animation: pulse-line 3s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% {
        opacity: 0.2;
        transform: translateX(-50%) translateY(-50%) scaleY(1);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(-50%) scaleY(1.2);
    }
}

/* Philosophy section enhancements */
.philosophy-container:hover {
    transform: translateY(-4px);
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .team-member {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .team-member:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

@media (max-width: 768px) {
    .animate-spin-slow {
        animation: none;
    }
    
    .team-member:hover img {
        transform: scale(1.05);
    }
}

/* Custom scrollbar for better aesthetics */
#team-section::-webkit-scrollbar {
    display: none;
}

/* Text selection styling */
#team-section ::selection {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* Vision separator line */
.vision-separator {
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 1px;
}

/* Philosophy bubbles */
.philosophy-bubble {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.philosophy-bubble:hover {
    transform: translateY(-8px) rotate(5deg);
}

/* Floating animation for bubbles */
@keyframes bubble-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(2deg);
    }
}

.philosophy-bubble:nth-child(1) {
    animation: bubble-float 4s ease-in-out infinite;
}

.philosophy-bubble:nth-child(2) {
    animation: bubble-float 4.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.philosophy-bubble:nth-child(3) {
    animation: bubble-float 3.8s ease-in-out infinite;
    animation-delay: 1s;
}

/* 3D Bubble effects */
.bubble-3d {
    position: relative;
    background: linear-gradient(135deg, var(--bubble-light), var(--bubble-dark));
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
}

.bubble-3d:hover {
    transform: translateY(-8px) translateZ(20px) rotateX(5deg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

/* Bubble color variables */
.bubble-3d:nth-child(1) {
    --bubble-light: #60a5fa;
    --bubble-dark: #1d4ed8;
}

.bubble-3d:nth-child(1):hover {
    box-shadow: 
        0 20px 60px rgba(59, 130, 246, 0.5),
        0 10px 30px rgba(29, 78, 216, 0.4),
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

/* Indigo bubble */
.philosophy-bubble:nth-child(2) .bubble-3d {
    --bubble-light: #818cf8;
    --bubble-dark: #4338ca;
}

.philosophy-bubble:nth-child(2) .bubble-3d:hover {
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.5),
        0 10px 30px rgba(67, 56, 202, 0.4),
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

/* Purple bubble */
.philosophy-bubble:nth-child(3) .bubble-3d {
    --bubble-light: #a78bfa;
    --bubble-dark: #7c3aed;
}

.philosophy-bubble:nth-child(3) .bubble-3d:hover {
    box-shadow: 
        0 20px 60px rgba(147, 51, 234, 0.5),
        0 10px 30px rgba(124, 58, 237, 0.4),
        inset 0 3px 6px rgba(255, 255, 255, 0.3),
        inset 0 -3px 6px rgba(0, 0, 0, 0.15);
}

/* Central logo animations */
.group-logo {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.group-logo:hover {
    transform: translateY(-4px);
}

@keyframes animate-pulse-slow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

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

/* Floating particles animations */
@keyframes animate-float-1 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-8px) translateX(4px) rotate(120deg);
    }
    66% {
        transform: translateY(-4px) translateX(-2px) rotate(240deg);
    }
}

@keyframes animate-float-2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(6px) translateX(-3px) rotate(90deg);
    }
    75% {
        transform: translateY(-2px) translateX(5px) rotate(270deg);
    }
}

@keyframes animate-float-3 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    40% {
        transform: translateY(-6px) translateX(2px) scale(1.2);
    }
    80% {
        transform: translateY(3px) translateX(-4px) scale(0.8);
    }
}

.animate-float-1 {
    animation: animate-float-1 6s ease-in-out infinite;
}

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

.animate-float-3 {
    animation: animate-float-3 5s ease-in-out infinite;
}

/* 3D Shadow effects for circles - inversé pour suréléver */
.shadow-inner-light {
    box-shadow: 
        inset 0 -4px 12px rgba(255, 255, 255, 0.15),
        inset 0 4px 12px rgba(0, 0, 0, 0.4);
}

.shadow-inner-dark {
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 -6px 16px rgba(255, 255, 255, 0.08),
        inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.shadow-inner-deep {
    box-shadow: 
        inset 0 -8px 20px rgba(255, 255, 255, 0.06),
        inset 0 4px 10px rgba(0, 0, 0, 0.4);
}