/* Styles pour la page À propos - Version avec photos côte à côte */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--pico-card-background-color, #ffffff);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 2rem;
}

/* Conteneur des photos */
.team-member-photos {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.team-member-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--pico-primary, #667eea);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.team-card:hover .team-member-photo {
    transform: scale(1.05);
}

.team-member-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
}
.team-member-img-front {
	opacity: 1;
	z-index: 2;
}

.team-member-img-back {
	opacity: 0;
	z-index: 1;
}

/* Effet au survol - UNIQUEMENT si une photo2 existe */
.team-member-photo.has-second-photo:hover .team-member-img-front {
    opacity: 0;
}

.team-member-photo.has-second-photo:hover .team-member-img-back {
    opacity: 1;
}

/* Si une seule photo, elle reste centrée */
.team-member-photos .team-member-photo:only-child {
    margin: 0 auto;
}

.team-member-name {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--pico-color, #2d3748);
}

/* Animation de pulsation pour indiquer la présence d'une seconde photo */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes pulse-ring-soft {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 30px rgba(102, 126, 234, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Cercle extérieur qui pulse */
.team-member-photo.has-second-photo {
    position: relative;
}

.team-member-photo.has-second-photo::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 3px solid var(--pico-primary, #667eea);
    animation: pulse-ring 1.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Alternative : effet de glow pulsant (plus moderne) */
.team-member-photo.has-second-photo {
    animation: pulse-ring-soft 2s ease-in-out infinite;
    position: relative;
}

/* Version avec double cercle (plus visible) */
.team-member-photo.has-second-photo {
    position: relative;
}

.team-member-photo.has-second-photo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--pico-primary, #667eea);
    animation: pulse-ring 1.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.team-member-photo.has-second-photo::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--pico-primary, #667eea);
    animation: pulse-ring 1.8s ease-in-out infinite 0.3s;
    pointer-events: none;
    z-index: 0;
}

/* Désactive l'animation au survol pour éviter les conflits */
.team-member-photo.has-second-photo:hover::before,
.team-member-photo.has-second-photo:hover::after {
    animation-play-state: paused;
    opacity: 0;
}

/* Légère ombre portée colorée */
.team-member-photo.has-second-photo {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: box-shadow 0.3s ease;
}

.team-member-photo.has-second-photo:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .team-grid {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .team-member-photo {
        width: 163px;
        height: 163px;
    }

    .team-member-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        padding: 1rem;
    }

    .team-member {
        padding: 1.5rem;
    }

    .team-member-photo {
        width: 160px;
        height: 160px;
    }

    .team-member-photos {
        gap: 0.75rem;
    }

    .team-member-name {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .team-member-photo {
        width: 125px;
        height: 125px;
    }

    .team-member-name {
        font-size: 1.25rem;
    }
}

/* Support du mode sombre */
@media (prefers-color-scheme: dark) {
    .team-card {
        background: var(--pico-card-background-color, #1a202c);
    }

    .team-member-name {
        color: #e2e8f0;
    }
}



/* Bannière d'introduction */
.concept-banner {
    background: var(--pico-card-background-color);
    margin-bottom: var(--pico-spacing);
}

.concept-banner-content {
    display: flex;
    gap: var(--pico-spacing);
    align-items: center;
    flex-wrap: wrap;
}

.concept-banner-text {
    flex: 2;
}

.concept-banner-text p {
    font-size: 1.2rem;
}

/* Section impact */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--pico-spacing);
    margin: var(--pico-spacing) 0;
}

.impact-card {
    text-align: center;
}

.impact-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}