/* Styles pour la page équipe - Cartes simples */

/* Bouton de retour */
.back-button {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.back-button:hover {
    color: white;
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-4px);
}

/* Grille des cartes d'équipe avec centrage automatique */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.team-grid .team-card {
    flex: 0 0 calc(25% - 1.125rem); /* 25% moins l'espace des gaps */
    max-width: calc(25% - 1.125rem);
    min-width: 280px;
}

/* Grille des cartes */
.grid {
    display: grid;
    gap: 1.5rem;
}

/* Cartes d'équipe */
.team-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

/* Zones des cartes */
.card-zone {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Zone 1: Avatar */
.card-avatar {
    height: 100px;
    margin-bottom: 0.75rem;
}

/* Zone 2: Nom */
.card-name {
    height: 50px;
    margin-bottom: 0.5rem;
}

/* Zone 3: Rôle */
.card-role {
    height: 40px;
    margin-bottom: 0.75rem;
}

/* Zone 4: Description */
.card-description {
    flex: 1;
    min-height: 60px;
    align-items: flex-start;
    padding-top: 0.25rem;
}

/* Cartes modérateurs */
.moderateur-card {
    border-color: rgba(34, 197, 94, 0.3);
}

.moderateur-card:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.05);
}

.moderateur-card .team-role {
    color: #22c55e;
}

.moderateur-card:hover .team-role {
    color: #4ade80;
}

/* Cartes graphistes */
.graphiste-card {
    border-color: rgba(59, 130, 246, 0.3);
}

.graphiste-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.05);
}

.graphiste-card .team-role {
    color: #3b82f6;
}

.graphiste-card:hover .team-role {
    color: #60a5fa;
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Effet de brillance */
.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    border-radius: inherit;
}

.team-card:hover::before {
    left: 100%;
}

/* Avatar de l'équipe */
.team-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar img {
    transform: scale(1.1);
}

/* Indicateur de statut */
.status-indicator {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.status-indicator.active {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-indicator.inactive {
    background: #6b7280;
}

/* Nom de l'équipe */
.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.team-card:hover .team-name {
    transform: translateY(-2px);
}

/* Rôle de l'équipe */
.team-role {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.team-card:hover .team-role {
    transform: translateY(-1px);
}

/* Description */
.team-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.team-card:hover .team-description {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

/* Animations d'entrée */
.team-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Délai d'animation pour chaque carte */
.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }
.team-card:nth-child(5) { animation-delay: 0.5s; }

/* Responsive */
@media (max-width: 768px) {
    .team-card {
        padding: 1rem;
        min-height: 320px;
    }
    
    .card-avatar {
        height: 80px;
    }
    
    .team-avatar {
        width: 70px;
        height: 70px;
    }
    
    .card-name {
        height: 45px;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .card-role {
        height: 35px;
    }
    
    .team-role {
        font-size: 0.85rem;
    }
    
    .card-description {
        min-height: 50px;
    }
    
    .team-description {
        font-size: 0.7rem;
    }
    
    /* Grille responsive pour mobile */
    .team-grid .team-card {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: auto;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    /* Grille pour tablettes - 2 colonnes */
    .team-grid .team-card {
        flex: 0 0 calc(50% - 0.625rem);
        max-width: calc(50% - 0.625rem);
        min-width: 250px;
    }
}

@media (min-width: 1024px) {
    /* Grille pour desktop - 4 colonnes fixes */
    .team-grid .team-card {
        flex: 0 0 calc(25% - 1.125rem);
        max-width: calc(25% - 1.125rem);
        min-width: 280px;
    }
}

@media (max-width: 640px) {
    .team-card {
        padding: 0.75rem;
        min-height: 280px;
    }
    
    .card-avatar {
        height: 70px;
    }
    
    .team-avatar {
        width: 60px;
        height: 60px;
    }
    
    .card-name {
        height: 40px;
    }
    
    .team-name {
        font-size: 0.9rem;
    }
    
    .card-role {
        height: 30px;
    }
    
    .team-role {
        font-size: 0.8rem;
    }
    
    .card-description {
        min-height: 45px;
    }
    
    .team-description {
        font-size: 0.65rem;
    }
}

/* Effet de particules subtil */
.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.team-card:hover::after {
    opacity: 1;
}

/* Amélioration de la lisibilité */
.team-name, 
.team-role,
.team-specialty,
.team-description {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Call to action */
.bg-gradient-to-r.from-purple-600\/20 {
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-r.from-purple-600\/20::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
    border-radius: inherit;
}

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

/* Boutons CTA */
.bg-gradient-to-r.from-green-500,
.bg-gradient-to-r.from-blue-500 {
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-gradient-to-r.from-green-500:hover,
.bg-gradient-to-r.from-blue-500:hover {
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bg-gradient-to-r.from-green-500::before,
.bg-gradient-to-r.from-blue-500::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: left 0.5s;
}

.bg-gradient-to-r.from-green-500:hover::before,
.bg-gradient-to-r.from-blue-500:hover::before {
    left: 100%;
}