/* ============================================
   PROFIL.HTML - STYLES PERSONNALISÉS
   ============================================ */

/* === 1. VARIABLES CSS === */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* === 2. NAVIGATION & TABS === */
.tab-active {
    position: relative;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-btn {
    position: relative;
    transition: var(--transition-base);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.tab-btn:hover::after,
.tab-btn.tab-active::after {
    width: 100%;
}

.nav-link {
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* === 3. PROGRESS BAR === */
.progress-bar {
    height: 8px;
    border-radius: 4px;
    background-color: var(--gray-200);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.5s ease;
}

/* === 4. ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
    100% {
        opacity: 0;
        transform: translateY(20px) translateX(-50%);
    }
}

@keyframes shine {
    0% {
        left: -50%;
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

/* === 5. CLASSES D'ANIMATION === */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

/* === 6. CARDS & HOVER EFFECTS === */
.card-hover {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.glow-hover {
    transition: var(--transition-base);
}

.glow-hover:hover {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* === 7. GRADIENT EFFECTS === */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradient 5s ease infinite;
}

.radial-gradient {
    background: radial-gradient(
        circle at 50% 50%, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(255, 255, 255, 0) 70%
    );
}

/* === 8. GLASS EFFECT === */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === 9. BLOB BACKGROUND === */
.blob {
    position: absolute;
    filter: blur(60px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* === 10. SCROLL INDICATOR === */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

/* === 11. FLIP CARD === */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* === 12. TESTIMONIAL CARD SHINE === */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

.testimonial-card:hover::before {
    animation: shine 1.5s;
}

/* === 13. CATEGORY CHIPS === */
.category-chip {
    display: inline-block;
    transition: var(--transition-base);
}

.category-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* === 14. SEARCH INPUT === */
.search-input {
    transition: var(--transition-base);
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    outline: none;
}

/* === 15. ASSOCIATION CARD IMAGE === */
.association-card {
    overflow: hidden;
}

.association-card-image {
    transition: transform 0.5s ease;
    will-change: transform;
}

.association-card:hover .association-card-image {
    transform: scale(1.1);
}

/* === 16. WAVE SHAPE === */
.wave-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.wave-shape .shape-fill {
    fill: #FFFFFF;
}

/* === 17. PARALLAX BACKGROUND === */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* === 18. LIGHTBOX === */
.lightbox {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* === 19. SHARE MENU === */
#shareMenu {
    transition: all 0.2s ease;
    transform-origin: top right;
}

#shareMenu.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

#shareMenu:not(.hidden) {
    opacity: 1;
    transform: scale(1);
}

/* === 20. GALLERY GRID === */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '\f00e'; /* FontAwesome search icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover img {
    filter: brightness(0.7);
}

/* === 21. RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
    .card-hover:hover {
        transform: translateY(-2px);
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .flip-card:hover .flip-card-inner {
        transform: none;
    }
}

/* === 22. PERFORMANCE OPTIMIZATIONS === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === 23. DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .glass-effect {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* === 24. PRINT STYLES === */
@media print {
    .card-hover,
    .glow-hover,
    .animate-fade-in {
        animation: none !important;
        transition: none !important;
    }
}

/* === 25. UTILITIES === */
.no-select {
    user-select: none;
    -webkit-user-select: none;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}