/* ==========================================================================
   REALISATIONS.CSS - STYLES LUXUEUX POUR LA PAGE RÉALISATIONS
   Style cohérent avec index.css - Portfolio Premium
   ========================================================================== */

/* ========== VARIABLES CSS RÉALISATIONS ========== */
:root {
    /* Reprend les variables d'index.css */
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --accent-gold: #d4af37;
    --light-gold: #f4e4a7;
    --pure-white: #ffffff;
    --light-gray: rgba(255, 255, 255, 0.8);
    
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4e4a7 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
    
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ========== HERO RÉALISATIONS LUXURY ========== */
.realisations-hero-luxury {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
    padding: 140px 0 80px;
}

/* Hérite des styles particules d'index.css */
.realisations-hero-luxury .hero-particles,
.realisations-hero-luxury .particle,
.realisations-hero-luxury .hero-overlay {
    /* Utilise les mêmes styles que index.css */
}

.realisations-hero-luxury .hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.realisations-hero-luxury .hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Statistiques portfolio hero */
.realisations-hero-luxury .hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.realisations-hero-luxury .stat-item {
    text-align: center;
}

.realisations-hero-luxury .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 8px;
}

.realisations-hero-luxury .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== SECTION FILTRES PREMIUM ========== */
.filters-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
}

.filters-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.filters-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 25px;
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.filter-btn.active {
    background: var(--gradient-gold);
    color: var(--primary-black);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.filter-btn:hover:not(.active) {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.filter-btn .btn-icon {
    font-size: 1.1rem;
    transition: transform var(--transition);
}

.filter-btn:hover .btn-icon {
    transform: scale(1.1);
}

.filter-btn .btn-text {
    position: relative;
    z-index: 2;
}

.filter-btn .btn-count {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.filter-btn.active .btn-count {
    background: rgba(10, 10, 10, 0.2);
    color: var(--primary-black);
}

.filter-btn .btn-shine {
    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;
    z-index: 1;
}

.filter-btn:hover .btn-shine {
    left: 100%;
}

/* ========== PORTFOLIO PREMIUM ========== */
.portfolio-luxury {
    padding: 100px 0;
    background: var(--gradient-dark);
    position: relative;
}

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* ========== CARDS PROJETS PREMIUM ========== */
.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 25px;
    overflow: hidden;
    transition: all var(--transition-slow);
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-height: 650px;
    display: flex;
    flex-direction: column;
}

.project-card.premium {
    border: 2px solid rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.03);
}

.project-card.featured {
    border: 2px solid var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
    transform: scale(1.02);
    box-shadow: var(--shadow-gold);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-gold);
    color: var(--primary-black);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.project-card.featured:hover {
    transform: translateY(-15px) scale(1.04);
}

/* Image container */
.project-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.3) 0%, rgba(212, 175, 55, 0.2) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .image-overlay {
    opacity: 1;
}

.project-tech-stack {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-gold);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Contenu du projet */
.project-content {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.project-category-badge {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 15px;
    transition: color var(--transition);
}

.project-card:hover .project-title {
    color: var(--accent-gold);
}

.project-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Features du projet */
.project-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: all var(--transition);
}

.feature-item:hover {
    transform: translateX(8px);
}

.feature-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.feature-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Résultats du projet */
.project-results {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    transition: all var(--transition);
}

.project-card:hover .project-results {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--accent-gold);
}

.result-item {
    text-align: center;
    flex: 1;
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bouton CTA du projet */
.project-cta-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 28px;
    background: var(--gradient-gold);
    color: var(--primary-black);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
    text-decoration: none;
}

.project-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: var(--primary-black);
    text-decoration: none;
}

.project-cta-btn .btn-icon {
    transition: transform var(--transition);
}

.project-cta-btn:hover .btn-icon {
    transform: translateX(4px);
}

.project-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    z-index: 1;
}

.project-card:hover .project-hover-effect {
    opacity: 1;
}

/* ========== BOUTON VOIR PLUS ========== */
.load-more-section {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 35px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    color: var(--pure-white);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.load-more-btn:hover {
    background: var(--gradient-gold);
    color: var(--primary-black);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.load-more-btn .btn-icon {
    font-size: 1.2rem;
    transition: transform var(--transition);
}

.load-more-btn:hover .btn-icon {
    transform: rotate(45deg) scale(1.1);
}

.load-more-text {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-style: italic;
}

/* ========== CTA PROJET PERSONNALISÉ ========== */
.custom-project-cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.custom-project-cta .cta-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.custom-project-cta .cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.custom-project-cta .cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.custom-project-cta .cta-description {
    font-size: 1.1rem;
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: 40px;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 12px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.cta-feature .feature-icon {
    font-size: 1.2rem;
}

.cta-feature .feature-text {
    color: var(--pure-white);
    font-weight: 500;
    font-size: 0.9rem;
}

.custom-project-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========== MODAL PROJET ========== */
.project-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-modal-overlay.active {
    opacity: 1;
}

.project-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--gradient-dark);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px 40px;
    transition: transform var(--transition);
    box-shadow: var(--shadow-heavy);
}

.project-modal-overlay.active .project-modal-container {
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gradient-gold);
    color: var(--primary-black);
    transform: scale(1.1);
}

.modal-content-area {
    color: var(--pure-white);
}

/* ========== FILTRAGE ANIMATIONS ========== */
.project-card.filter-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.project-card.filter-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
    
    .project-card.featured {
        transform: none;
    }
    
    .filters-buttons {
        gap: 15px;
    }
    
    .filter-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .realisations-hero-luxury {
        padding: 120px 0 60px;
    }
    
    .portfolio-luxury,
    .filters-section,
    .custom-project-cta {
        padding: 80px 0;
    }
    
    .portfolio-container,
    .filters-container {
        padding: 0 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project-card {
        min-height: auto;
    }
    
    .project-image-container {
        height: 200px;
    }
    
    .project-content {
        padding: 25px 20px;
    }
    
    .realisations-hero-luxury .hero-stats {
        gap: 25px;
    }
    
    .filters-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .custom-project-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .project-modal-container {
        width: 95%;
        padding: 40px 25px;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
}

@media (max-width: 480px) {
    .realisations-hero-luxury {
        padding: 100px 0 50px;
    }
    
    .portfolio-luxury,
    .filters-section,
    .custom-project-cta {
        padding: 60px 0;
    }
    
    .portfolio-container,
    .filters-container {
        padding: 0 15px;
    }
    
    .project-card {
        border-radius: 20px;
    }
    
    .project-content {
        padding: 20px 15px;
    }
    
    .project-results {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .realisations-hero-luxury .hero-stats,
    .cta-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .tech-tag {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    
    .btn-primary,
    .btn-secondary,
    .project-cta-btn,
    .load-more-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .project-modal-container {
        padding: 30px 20px;
    }
}

/* ========== ANIMATIONS SUPPLÉMENTAIRES ========== */
@keyframes projectGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.4); }
}

.project-card.featured {
    animation: projectGlow 4s ease-in-out infinite;
}

@keyframes filterPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.filter-btn.active {
    animation: filterPulse 2s ease-in-out infinite;
}

/* Effet parallax pour les particules */
@keyframes portfolioParticleMovement {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(25px, -25px) rotate(90deg); }
    50% { transform: translate(-20px, -35px) rotate(180deg); }
    75% { transform: translate(-30px, -15px) rotate(270deg); }
}

.hero-particles .particle {
    animation: portfolioParticleMovement 18s ease-in-out infinite;
}

.hero-particles .particle:nth-child(2) {
    animation-delay: 3.6s;
}

.hero-particles .particle:nth-child(3) {
    animation-delay: 7.2s;
}

.hero-particles .particle:nth-child(4) {
    animation-delay: 10.8s;
}

.hero-particles .particle:nth-child(5) {
    animation-delay: 14.4s;
}

/* ========== ACCESSIBILITÉ ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .project-card.featured {
        animation: none;
    }
}

/* États de focus pour l'accessibilité */
.project-cta-btn:focus,
.filter-btn:focus,
.load-more-btn:focus,
.modal-close:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* ========== PRINT STYLES ========== */
@media print {
    .realisations-hero-luxury,
    .custom-project-cta,
    .project-modal-overlay {
        display: none;
    }
    
    .project-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        background: white !important;
        color: black !important;
    }
    
    .project-cta-btn,
    .filters-buttons {
        display: none;
    }
}