/* ==============================================
   PROFILES SECTION - Styles CSS Modernes
   ============================================== */

/* Section principale */
.profiles-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 10px 0 20px 0;
    min-height: 90vh;
}

/* Effets d'arrière-plan */
.profiles-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.profiles-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(168, 85, 247, 0.04) 0%, transparent 60%);
}

.profiles-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 35%, rgba(139, 92, 246, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 85% 65%, rgba(124, 58, 237, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 50% 90%, rgba(168, 85, 247, 0.1) 1px, transparent 1px);
    background-size: 120px 120px, 160px 160px, 200px 200px;
    animation: profiles-particles-float 25s ease-in-out infinite;
}

@keyframes profiles-particles-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -25px) rotate(0.3deg); }
    50% { transform: translate(-20px, -10px) rotate(-0.4deg); }
    75% { transform: translate(10px, 15px) rotate(0.2deg); }
}

/* Container principal */
.profiles-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header de la section */
.profiles-header {
    text-align: center;
    margin-bottom: 4rem;
}

.profiles-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(124, 58, 237, 0.25) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: #8b5cf6;
    margin-bottom: 2rem;
    font-weight: 600;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.badge-icon {
    width: 18px;
    height: 18px;
}

.profiles-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profiles-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Grid des profils */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

/* Cartes de profil */
.profile-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.profile-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-12px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

.profile-card:hover::before {
    opacity: 1;
}

/* Header des cartes de profil */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.profile-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.3);
}

.profile-icon .icon {
    width: 28px;
    height: 28px;
    color: white;
}

.profile-stats {
    text-align: right;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #8b5cf6;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Contenu des cartes */
.profile-content {
    margin-bottom: 2rem;
}

.profile-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.profile-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.profile-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.feature-icon {
    width: 18px;
    height: 18px;
    color: #8b5cf6;
    flex-shrink: 0;
}

/* Démonstrations des profils */
.profile-demo {
    display: none; /* Masquer les images de démonstration */
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.profile-demo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.profile-demo:hover img {
    transform: scale(1.05);
}

.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8) 0%, rgba(124, 58, 237, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.demo-label {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Boutons CTA des profils */
.profile-cta {
    margin-top: 1rem;
}

.profile-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    color: #8b5cf6;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    color: white;
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Section des témoignages */
.profiles-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-item {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.1);
}

.testimonial-content p {
    color: #cbd5e1;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.author-role {
    color: #8b5cf6;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profiles-section {
        padding: 40px 0 40px 0;
    }
    
    .profiles-container {
        padding: 0 1.5rem;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    
    .profiles-testimonials {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .profiles-section {
        padding: 30px 0 30px 0;
    }
    
    .profiles-container {
        padding: 0 0; /* Supprime le padding pour permettre le scroll horizontal */
    }
    
    .profiles-header {
        margin-bottom: 3rem;
        padding: 0 16px; /* Remet le padding seulement pour le header */
    }
    
    .profiles-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Layout horizontal pour mobile */
    .profiles-grid {
        display: flex;
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 0 16px;
        padding-bottom: 20px; /* Espace pour la scrollbar */
        margin-bottom: 3rem;
        
        /* Scrollbar styling */
        scrollbar-width: thin;
        scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
    }
    
    /* Webkit scrollbar styling */
    .profiles-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .profiles-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }
    
    .profiles-grid::-webkit-scrollbar-thumb {
        background: rgba(139, 92, 246, 0.5);
        border-radius: 3px;
    }
    
    .profiles-grid::-webkit-scrollbar-thumb:hover {
        background: rgba(139, 92, 246, 0.7);
    }
    
    .profile-card {
        flex: 0 0 300px; /* Largeur fixe pour les cartes en mode horizontal */
        padding: 1.5rem;
        margin-bottom: 0;
    }
    
    .profile-header {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .profile-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    
    .profile-icon .icon {
        width: 24px;
        height: 24px;
    }
    
    .profile-stats {
        text-align: right;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .profile-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .profile-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .profile-features {
        gap: 0.5rem;
    }
    
    .feature-item {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }
    
    .feature-icon {
        width: 16px;
        height: 16px;
    }
    
    .profile-demo img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        flex: 0 0 280px; /* Largeur encore plus compacte pour très petits écrans */
        padding: 1.25rem;
    }
    
    .profile-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    .profile-icon .icon {
        width: 22px;
        height: 22px;
    }
    
    .profile-title {
        font-size: 1.1rem;
    }
    
    .profile-description {
        font-size: 0.85rem;
    }
    
    .feature-item {
        font-size: 0.8rem;
    }
    
    .feature-icon {
        width: 14px;
        height: 14px;
    }
    
    .profile-demo img {
        height: 130px;
    }
    
    .testimonial-item {
        padding: 1.25rem;
    }
    
    .profiles-testimonials {
        margin-top: 2rem;
    }
}

/* Indicateur de scroll pour mobile */
.mobile-scroll-indicator {
    display: none;
}

@media (max-width: 768px) {
    .mobile-scroll-indicator {
        display: block;
        text-align: center;
        margin-top: 20px;
        padding: 0 16px;
    }
    
    .mobile-scroll-indicator span {
        font-size: 12px;
        color: rgba(139, 92, 246, 0.7);
        animation: fadeInOut 3s ease-in-out infinite;
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Animation de transition pour les éléments qui apparaissent */
.profile-card {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Délais d'animation pour créer un effet en cascade */
.profile-card:nth-child(1) { transition-delay: 0.1s; }
.profile-card:nth-child(2) { transition-delay: 0.2s; }
.profile-card:nth-child(3) { transition-delay: 0.3s; }

/* Préchargement des images pour de meilleures performances */
.profile-demo img {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* Effets de focus pour l'accessibilité */
.profile-btn:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

.profile-demo:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
    border-radius: 16px;
}

/* Animation de chargement pour les images */
@keyframes shimmer-profiles {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.profile-demo img[src=""] {
    background: linear-gradient(90deg, #2a2a2a 0px, #3a3a3a 40px, #2a2a2a 80px);
    background-size: 200px;
    animation: shimmer-profiles 1.5s infinite;
}

/* Effet de pulsation sur les statistiques */
@keyframes pulse-stats {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-number {
    animation: pulse-stats 2s ease-in-out infinite;
    animation-delay: 1s;
}

/* Désactiver le hover sur mobile */
@media (max-width: 768px) {
    .profile-card:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .profile-card:hover::before {
        opacity: 0;
    }
} 